loody <miloody@xxxxxxxxx> 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