This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Don't query extra info about the internal main thread
- From: Daniel Jacobowitz <drow at false dot org>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 24 Jul 2008 11:13:57 -0400
- Subject: Re: Don't query extra info about the internal main thread
- References: <200807241609.35834.pedro@codesourcery.com>
On Thu, Jul 24, 2008 at 04:09:35PM +0100, Pedro Alves wrote:
> Hi,
>
> A couple of weeks ago, Dmitry Smirnov reported that GDB was trying to get
> qThreadExtraInfo out of his target and it was damaging his debug session, as
> GDB complained about a protocol error -- because the reply that came back
> was ill-formed.
>
> If the remote side doesn't have any thread support, there's no use in
> querying info about the main thread that GDB added internally. One would
> expect stubs that don't support threads to return empty to this optional
> packet, but his report showed that it's better to not rely on
> stubs behaving.
>
> Tested against gdbserver with and without --disable-packet=threads.
>
> OK?
OK.
--
Daniel Jacobowitz
CodeSourcery