This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stepping through signal trampolines


On GNU/Linux, stepi appears to work, but nexti appears to skip a frame:

(gdb) PASS: gdb.base/siginfo.exp: continue to nexti handler
bt
#0 handler (sig=26, info=0xbfffd550, context=0xbfffd5d0) at /home/cygnus/cagney
/PENDING/2004-03-31-sigstack/src/gdb/testsuite/gdb.base/siginfo.c:11
#1 <signal handler called>
#2 main () at /home/cygnus/cagney/PENDING/2004-03-31-sigstack/src/gdb/testsuite
/gdb.base/siginfo.c:46
(gdb) PASS: gdb.base/siginfo.exp: backtrace for nexti
nexti
12 } /* handler */
1: x/i $pc 0x80483f9 <handler+13>: leave
(gdb) nexti
0x080483fa in handler (sig=1, info=0xbfffd9f4, context=0xbfffd9fc) at /home/cygn
us/cagney/PENDING/2004-03-31-sigstack/src/gdb/testsuite/gdb.base/siginfo.c:12
12 } /* handler */
1: x/i $pc 0x80483fa <handler+14>: ret
(gdb) nexti
main () at /home/cygnus/cagney/PENDING/2004-03-31-sigstack/src/gdb/testsuite/gdb
.base/siginfo.c:46
46 while (!done);
1: x/i $pc 0x8048483 <main+136>: mov 0x8049680,%eax
(gdb) FAIL: gdb.base/siginfo.exp: nexti out of handler (in main)


more debugging, but at least there's a test case.

Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]