From: Daniel Jacobowitz <drow@false.org>
To: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Cc: gdb@sources.redhat.com
Subject: Re: PTRACE_SINGLESTEP into signal handler
Date: Sun, 28 Nov 2004 01:26:00 -0000 [thread overview]
Message-ID: <20041127232814.GA5593@nevyn.them.org> (raw)
In-Reply-To: <OF7583C4BD.F239F075-ON41256F58.005E2ABB-41256F58.005FB691@de.ibm.com>
On Fri, Nov 26, 2004 at 06:25:26PM +0100, Ulrich Weigand wrote:
> Does gdb assume PTRACE_SINGLESTEP into a handle returns *before*
> the first instruction of the handler was executed?
>
> We could change the kernel to do that, and this fixes the test case
> failures, but I'm not sure if this is the right thing to do --
> the ptrace documentation says "arranges for the child to be stopped
> after execution of a single instruction", which would appear to
> indicate the current behaviour is correct.
>
> How does this work on other platforms?
I'm pretty sure that the answer is yes - we should stop on the first
instruction. It does seem a little strange as a behavior when
requesting single-step to step no instructions, but we have no other
way to get to the beginning of the handler. i386 was changed recently.
--
Daniel Jacobowitz
next prev parent reply other threads:[~2004-11-27 23:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-27 23:28 Ulrich Weigand
2004-11-28 1:26 ` Daniel Jacobowitz [this message]
2004-11-29 14:43 ` Ulrich Weigand
2004-11-29 15:45 ` 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=20041127232814.GA5593@nevyn.them.org \
--to=drow@false.org \
--cc=Ulrich.Weigand@de.ibm.com \
--cc=gdb@sources.redhat.com \
/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