From: Daniel Jacobowitz <drow@false.org>
To: "Nathan J. Williams" <nathanw@wasabisystems.com>
Cc: gdb@sources.redhat.com
Subject: Re: vCont [was Re: Multithreaded debugging: strange thread switches]
Date: Wed, 25 Jan 2006 11:20:00 -0000 [thread overview]
Message-ID: <20060125000431.GA31922@nevyn.them.org> (raw)
In-Reply-To: <mtuzmll8ak1.fsf_-_@contents-vnder-pressvre.mit.edu>
On Tue, Jan 24, 2006 at 06:34:38PM -0500, Nathan J. Williams wrote:
> Daniel Jacobowitz <drow@false.org> writes:
>
> > This, generally, is part of the problem. If you want this to work, you
> > need to implement the vCont packet in the stub. The Hc1 packet is
> > supposed to mean "step only thread 1, leaving thread 2 stopped", and
> > that's not what the gdb "next" command is supposed to map to - that's
> > "step this thread but leave other threads free-running".
>
> Tangentially... I'm working on a stub for a system that doesn't have
> hardware single-step; GDB knows that and doesn't try to issue any step
> commands. However, the logic in remote.c that analyzes the response to
> the vCont? packet refuses to use vCont unless it supports all of s, S,
> c, and C. Is the best thing for my stub just to lie about supporting s
> and S, and to rely on the knowledge that GDB won't try to use them?
Yeah, I've been meaning to fix that. A better thing would be to modify
GDB to accept a vCont packet that only indicated continue, and then
issue an error if remote_resume tries to step.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2006-01-25 0:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-23 15:46 Multithreaded debugging: strange thread switches Vladimir Prus
2006-01-23 16:02 ` Daniel Jacobowitz
2006-01-24 14:28 ` Vladimir Prus
2006-01-24 14:41 ` Daniel Jacobowitz
2006-01-24 14:44 ` Vladimir Prus
2006-01-24 16:16 ` Daniel Jacobowitz
2006-01-24 21:21 ` Eli Zaretskii
2006-01-25 0:04 ` vCont [was Re: Multithreaded debugging: strange thread switches] Nathan J. Williams
2006-01-25 11:20 ` Daniel Jacobowitz [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=20060125000431.GA31922@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=nathanw@wasabisystems.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