This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Implement -thread-info.
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 18 Feb 2008 19:25:29 +1300
- Subject: Re: [RFA] Implement -thread-info.
- References: <200802171833.26673.vladimir@codesourcery.com>
> Presently, the MI -thread-info and -thread-list-all-threads
> commands are not implemented, so a frontend wishing to know
> the state of all threads upon stop is required to manually iterate
> over threads, or use CLI. This patch implements -thread-info,
> that prints essentially the same information as 'info thread' in CLI.
> The new command can either print information for all threads, or
> for a specific one provided as argument, making -thread-list-all-threads
> not necessary.
mi_info_threads is nearly the same function as thread_command. Can this be
used in a dual way just as -break-list uses breakpoint_1?
Also Denis Pilat has already proposed a patch for -thread-info:
http://sourceware.org/ml/gdb-patches/2007-03/msg00167.html
How does your patch compare? (assuming the problem of return type is solved
as has been done for thread_select).
--
Nick http://www.inet.net.nz/~nickrob