This is the mail archive of the
mailing list for the GCC project.
Re: Fwd: GCC debug
daniel tian wrote:
> 2009/9/28 Basile STARYNKEVITCH <firstname.lastname@example.org>:
>> daniel tian wrote:
>>> 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
>>> 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 email@example.com - 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.
> 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.