daniel tian wrote: > 2009/9/28 Basile STARYNKEVITCH <bas...@starynkevitch.net>: >> daniel tian wrote: >>> Thanks. >>> But how to debug cc1. Because now I port the gcc to my RISC target. >>> But when build the libgcc2.c. Some error occurred. So i have to debug >>> it. >>> Any advice about how to debug? >> >> Start gdb from the build directory (more precisely from $BUILDIR/gcc) >> >> BTW, I am not sure your question belongs to gcc@gcc.gnu.org - it is really a >> beginner's question, and there are several documents about it. >> >> This is why I reply to you only, not to the list. >> > Thanks. > You didn't get my point. > If I just start up gdb to debug cc1, cc1 will return with message that > it did't know the parameter I pass to it.
"gcc -v" shows you all the parameters that are passed to cc1. You need to use these in gdb. Andrew.