Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb@sources.redhat.com
Subject: Re: What to do with threads?
Date: Tue, 04 Mar 2003 14:35:00 -0000	[thread overview]
Message-ID: <3E64B9BA.90009@redhat.com> (raw)
In-Reply-To: <20030304025913.GA31172@nevyn.them.org>

> On Mon, Mar 03, 2003 at 06:40:08PM -0500, Andrew Cagney wrote:
> 
>> Since GDB's frames have a very short life time (flushed the moment there 
>> is even the faintest wiff of a changed target) it may be possible to 
>> instead use `struct thread_info':
>> 
>> 	struct thread_info *get_frame_thread (frame)
>> 
>> and
>> 
>> 	get_thread_regcache (thread_info);
>> 
>> For this to work, though, there would need to be a function that was 
>> guarenteed to always return a thread_info object.  Such a 
>> get_selected_thread() or find_thread_by_tpid(?inferior_tpid?) would need 
>> to return a thread object when there were no threads ...
> 
> 
> Definitely sounds like a change whose time has come.  There's one
> hiccup in that when we go from one-process to one-thread we need to
> update the thread ID; you can see how I handled this (inelegantly) in
> gdbserver.  Gdbserver's always got a thread... more or less.

Hmm, true.  A target changed event should flush that problem, such an 
operation has not just a faint wiff but rather the very unhealty stench 
of a `radically changed target'.

Andrew



      reply	other threads:[~2003-03-04 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-02 21:04 Andrew Cagney
2003-02-03 16:58 ` Quality Quorum
2003-03-03 23:40 ` Andrew Cagney
2003-03-04  2:59   ` Daniel Jacobowitz
2003-03-04 14:35     ` Andrew Cagney [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=3E64B9BA.90009@redhat.com \
    --to=ac131313@redhat.com \
    --cc=drow@mvista.com \
    --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