Fwd: some questions about kernel debugging

Ian Lance Taylor iant@google.com
Wed Jul 14 10:44:00 GMT 2010


loody <miloody@gmail.com> writes:

> I write a sample program and compile it with -O1 optimized.
> (such as gcc -g -O1 -o test test.c)
> And I can see the local variable.
> I attach my test program, kernel config and compile flags for your reference.
> appreciate your help,

Thanks, but it seems like you are showing us a case which works.  Are
you asking why this works and the kernel doesn't work?  Can you show us
a case which doesn't work?

Ian



More information about the Gcc-help mailing list