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: [commit] Simplify "info threads" with get_number_or_range


>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:

Michael> Wow, this is great.
Michael> I will look into using it for thread-apply too.

Michael> 2011-02-18  Michael Snyder  <msnyder@vmware.com>
Michael> 	* thread.c (info_threads_command): Re-implement using 
Michael> 	get_number_or_range.

I think this is a good idea.

I was wondering about having "info threads" optionally take a regular
expression, like "thread find".  That would give a different output
format for those cases where you want to see that, and don't really care
exactly what matched.

Something like:  info threads 5-7 /name/
... where "/" indicates a regexp arg.

Tom


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