This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Implement -thread-info.


 > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]