Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb@sources.redhat.com
Subject: Re: Stepping through signal trampolines
Date: Mon, 05 Apr 2004 22:48:00 -0000	[thread overview]
Message-ID: <4071E252.1060904@gnu.org> (raw)
In-Reply-To: <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


      reply	other threads:[~2004-04-05 22:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-25 14:47 Mark Kettenis
2004-03-25 19:59 ` Andrew Cagney
2004-04-05 22:48   ` Andrew Cagney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4071E252.1060904@gnu.org \
    --to=cagney@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox