From: Daniel Jacobowitz <drow@false.org>
To: Fabian Cenedese <Cenedese@indel.ch>
Cc: gdb@sources.redhat.com
Subject: Re: MI set thread command
Date: Wed, 08 Sep 2004 13:05:00 -0000 [thread overview]
Message-ID: <20040908130510.GA16046@nevyn.them.org> (raw)
In-Reply-To: <5.2.0.9.1.20040908083752.01d17910@NT_SERVER>
On Wed, Sep 08, 2004 at 09:45:30AM +0200, Fabian Cenedese wrote:
> (gdb) s
> Sending packet: $vCont?#49...Ack
> -- test if vCont is supported
> Packet received: vCont;c;s
> Packet vCont (verbose-resume) is NOT supported
> -- why test for single actions if all are necessary? could vCont be expanded?
That's right, it's for future expansion.
> from remote.c
> /* If s, S, c, and C are not all supported, we can't use vCont. Clearing
> BUF will make packet_ok disable the packet. */
I think this could be fixed, since we support running without S and C,
and on some targets even without s. I just didn't have a reason to do
it when I added vCont.
>
>
> Sending packet: $Hc0#db...Ack
> Packet received: OK
> -- select thread with id 0 for cont/step
>
> Sending packet: $S04#b7...Ack
> -- step with signal 04 (SIGILL...?)
> Packet received:
> Can't send signals to this remote system. SIGILL not sent.
> -- nope, signals are not supported on the embedded system
>
> Sending packet: $s#73...Ack
> -- step normal
>
>
> Hc Zero means "pick any thread". Why should this be when I want to
> single-step exactly thread 23 and no other? Does this only work with
> vCont (and not s)?
Correct.
> I then implemented all vCont actions and got to this:
>
>
> ->$vCont;s:d270;c#8d
> <-$S05#b8
You may want to implement T...
>
> ->$g#67
> <-$00000000001649e000164ae0001...
>
>
> So gdb debugs a thread and asks registers, and the registers of course need to
> come from the same thread. Which registers do I need to return now? The ones
> from the last Hgt command? Or the ones from the last vCont;s command? Or
> should they be the same anyway?
This is a little fuzzy in the protocol; might want to take a look at
how gdbserver handles it. I know that if the resume reply specifies
thread:, that sets GDB's idea of where to expect registers from. If it
doesn't, I am not sure what happens.
--
Daniel Jacobowitz
next prev parent reply other threads:[~2004-09-08 13:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-07 9:03 Fabian Cenedese
2004-09-07 17:08 ` Daniel Jacobowitz
2004-09-08 7:46 ` Fabian Cenedese
2004-09-08 13:05 ` Daniel Jacobowitz [this message]
2004-09-08 13:52 ` Fabian Cenedese
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=20040908130510.GA16046@nevyn.them.org \
--to=drow@false.org \
--cc=Cenedese@indel.ch \
--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