From: "Maciej W. Rozycki" <macro@mips.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sourceware.org, "Maciej W. Rozycki" <macro@linux-mips.org>
Subject: Re: Target-specific thread switching backend
Date: Wed, 05 Dec 2007 16:07:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.61.0712051506590.26738@perivale.mips.com> (raw)
In-Reply-To: <20071205144031.GA19944@caradoc.them.org>
On Wed, 5 Dec 2007, Daniel Jacobowitz wrote:
> I don't see why this is necessary, or how it is safe. At every
> operation, the requested thread should be indicated by inferior_ptid
> (or a ptid_t argument in some cases). And switch_to_thread is usually
> but not always called when inferior_ptid is changed, e.g.
> regcache_raw_read.
Well, I found it cleaner for the hardware to follow what GDB thinks that
the current thread is, but I suppose I can make the switch be done in the
calls that access registers and hardware breakpoints as appropriate only
and cache the last seen value of inferior_ptid within the target code to
make it reasonably fast.
It sounds worrying though, that the notion of the current thread within
GDB is changed freely somewhere when there is a dedicated call to switch
threads, hmm...
Maciej
next prev parent reply other threads:[~2007-12-05 15:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 14:26 Maciej W. Rozycki
2007-12-05 15:22 ` Daniel Jacobowitz
2007-12-05 16:07 ` Maciej W. Rozycki [this message]
2007-12-05 18:37 ` Daniel Jacobowitz
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=Pine.LNX.4.61.0712051506590.26738@perivale.mips.com \
--to=macro@mips.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=macro@linux-mips.org \
/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