public inbox for gdb@sourceware.org
 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: Thu, 25 Mar 2004 19:59:00 -0000	[thread overview]
Message-ID: <40630083.7020500@gnu.org> (raw)
In-Reply-To: <200403251333.i2PDXSq7006981@elgar.kettenis.dyndns.org>

> So there still seem to be some quirks with stepping through signal
> trampolines.  But before we decide what's the bug, I think we should
> ask ourselves what the desired behaviour is.  In my view:
> 
> * "finish" from within a signal handler should make us return to the
>   signal trampoline.
> 
> * "finish" from within a signal trampoline should make us return to
>   the point where the signal interruption occured.
> 
> * "stepi" from within a signal handler should step through the signal
>   handler and back into the signal trampoline.
> 
> * "stepi" from within a signal trampoline should step through the
>   signal trampoline until the sigreturn system call.

* nexti in a sigtramp is like stepi

What about disassemble?  Disassemble the entire signal trampoline or the 
current instruction?

(you now know where my testcases are going :-)

Andrew


  reply	other threads:[~2004-03-25 15:53 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 [this message]
2004-04-05 22:48   ` Andrew Cagney

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=40630083.7020500@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).