This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Report current thread in -thread-list-ids output
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Vladimir Prus <vladimir at codesourcery dot com>, gdb-patches at sources dot redhat dot com, Eli Zaretskii <eliz at gnu dot org>
- Date: Fri, 30 Jan 2009 17:19:35 +0000
- Subject: Re: Report current thread in -thread-list-ids output
- References: <200901301939.43053.vladimir@codesourcery.com>
On Friday 30 January 2009 16:39:42, Vladimir Prus wrote:
>
> This patch makes the MI -thread-list-ids report the current thread.
> It is advantageous for a frontend like Eclipse, that does not report
> any details about a thread whatsoever except for the id, and whether
> a thread is selected. If -thread-list-ids reports current thread, then
> Eclipse can use -thread-list-ids as opposed to 'info thread', and be
> a little bit faster.
>
> The change in thread.c actually touches MI-only function, so I assume
> I'm free to make this change.
In any case, it looks good to me. This fixes PR8145,
<http://sourceware.org/bugzilla/show_bug.cgi?id=8145> .
> Eli, does the doc change look good?
--
Pedro Alves