From: Tristan Gingold <gingold@adacore.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA Darwin]: handle simultaneous signal posting and single-stepping
Date: Tue, 07 Jul 2009 10:42:00 -0000 [thread overview]
Message-ID: <09E70B0B-1B71-443C-B5A2-23F1FDE7E06D@adacore.com> (raw)
In-Reply-To: <200907070943.n679hRt8029389@brahms.sibelius.xs4all.nl>
On Jul 7, 2009, at 11:43 AM, Mark Kettenis wrote:
>>
>> This patch fixes the issue by first single-stepping and keeping in
>> mind that a signal has to be posted.
>
> I'm not sure that single-stepping before sending the signal is right.
> This means we'll execute an instruction (which potentially affects the
> way signals are handled) before the program actually sees the signal.
>
> I think a better way to do this is to continue with a signal while
> keeping the breakpoints inserted, and deal with hitting the breakpoint
> again in the appropriate way.
Doesn't this change the gdb behaviour ? I have no strong opinion on
this but this is
generally a concern.
> Also, I think this needs to be handled in the generic code. I'm
> facing the same problem on OpenBSD.
Interesting. So I have to work on infrun.c...
Thanks for the comment,
Tristan.
prev parent reply other threads:[~2009-07-07 10:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 8:52 Tristan Gingold
2009-07-07 9:45 ` Mark Kettenis
2009-07-07 10:42 ` Tristan Gingold [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=09E70B0B-1B71-443C-B5A2-23F1FDE7E06D@adacore.com \
--to=gingold@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.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