문제

Although I have compiled my C program with -g -O0, the backtrace I get from gdb is useless:

(gdb) bt
#0  0x6113759d in wordfree () from /cygdrive/c/cygwin/bin/cygwin1.dll
#1  0x75141375 in OutputDebugStringA () from /cygdrive/c/Windows/system32/KERNELBASE.dll
#2  0x40010006 in ?? ()
#3  0x00000000 in ?? ()

Is there any way to get a useful backtrace in Cygwin?

My gdb version is 7.3.50.20111026-cvs (cygwin-special), gcc is 4.5.3.

도움이 되었습니까?

해결책

"bt full" should give you better results.

다른 팁

Make sure you have the correct thread selected. try info threads and then thread <num>.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top