From: Andrew Cagney <ac131313@ges.redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>, Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com, "Van Assche,
Bart" <bart.vanassche@sciatl.com>
Subject: Re: gdbserver
Date: Mon, 02 Sep 2002 18:47:00 -0000 [thread overview]
Message-ID: <3D7414AC.5020100@ges.redhat.com> (raw)
In-Reply-To: <20020831022307.GA9974@nevyn.them.org>
> On Fri, Aug 30, 2002 at 04:34:39PM -0700, Michael Snyder wrote:
>
>> Daniel Jacobowitz wrote:
>
>> >
>> > [Bart, please try this patch.]
>> >
>> > List folks,
>> >
>> > I think the time has come for generic_prepare_to_proceed to actually be
>> > used. The problem addressed by this patch is that PREPARE_TO_PROCEED
>> > is not a native-only macro (and not part of the target stack). So
>> > lin_lwp_prepare_to_proceed would be called when using gdbserver, and of
>> > course trap_ptid would be null_ptid or stale.
>> > generic_prepare_to_proceed works correctly for lin-lwp native
>> > debugging, and for remote debugging. This patch fixes an incorrect
>> > breakpoint hit after manually switching threads; i.e. the same
>> > breakpoint would be hit a second time. I'll try to write an
>> > independent test case.
>> >
>> > Patch look OK?
>
>>
>> Of course, a simpler and less intrusive fix would be to simply
>> define PREPARE_TO_PROCEED as generic_prepare_to_proceed, and
>> remove lin_lwp_prepare_to_proceed.
Yes (well using set_gdbarch_prepare_to_proceed() :-). Hmm, things to do
for someone --- add a linux-tdep.c file?
>> I'm not necessarily objecting to this patch -- just pointing
>> out an alternative. If people think we're ready for this step,
>> it's fine with me.
>
>
> I think we're ready, but let's wait and see. For any non-threaded
> target generic_prepare_to_proceed won't do any harm, since it checks
> inferior_ptid != resume_ptid; for threaded targets, some version of
> this function must be better than none.
Post branch, the whole lot can probably be ripped out.
Andrew
next prev parent reply other threads:[~2002-09-03 1:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6703765BD7FDD411AB0900508BFCACD3017D106E@bnbeluimex01.barconet.com>
2002-08-30 16:34 ` gdbserver Daniel Jacobowitz
2002-08-30 16:41 ` gdbserver Michael Snyder
2002-08-31 5:05 ` gdbserver Daniel Jacobowitz
2002-09-02 18:47 ` Andrew Cagney [this message]
2002-09-02 19:12 ` gdbserver Daniel Jacobowitz
2002-09-03 14:44 ` gdbserver 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=3D7414AC.5020100@ges.redhat.com \
--to=ac131313@ges.redhat.com \
--cc=bart.vanassche@sciatl.com \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@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