gcc with gdb

View: New views
2 Messages — Rating Filter:   Alert me  

gcc with gdb

by pms :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

how to setup gdb or gbdbinit to debug the gcc source. can anyone pls help
 can u interpret the meaning of
make STAGE1_CFLAGS="-g3 -O0" all-stage1

Is there any other ways of debugging gcc

thanks
PMS

Re: gcc with gdb

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

pms <pmshiva@...> writes:

> how to setup gdb or gbdbinit to debug the gcc source.

http://gcc.gnu.org/wiki/DebuggingGCC


> can anyone pls help
>  can u interpret the meaning of
> make STAGE1_CFLAGS="-g3 -O0" all-stage1

It means to build the stage 1 compiler with full debugging information
and no optimization.

Ian