This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Stepping through signal trampolines
- From: Andrew Cagney <cagney at gnu dot org>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 05 Apr 2004 18:48:50 -0400
- Subject: Re: Stepping through signal trampolines
- References: <200403251333.i2PDXSq7006981@elgar.kettenis.dyndns.org> <40630083.7020500@gnu.org>
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