This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] 07/10 non-stop inferior control
On Fri, May 09, 2008 at 02:22:51AM +0100, Pedro Alves wrote:
> Isn't this new_thread_event handling a bandaid for some
> misbehaving target? My understanding was that targets should handle
> new thread events (and call add_thread*) themselves nowadays.
That might be a little strong; but the Linux and remote targets do so,
because it was much more convenient.
> Since this is a new mode that will require adaptation
> by each target, it sounded reasonable to require that the
> the new_thread_event should never be hit, and that the
> target handles adding threads to GDB's thread list.
If documented in gdbint, I think this would be a reasonable new
restriction.
--
Daniel Jacobowitz
CodeSourcery