[commit] Simplify "info threads" with get_number_or_range

Tom Tromey tromey@redhat.com
Mon Feb 21 15:03:00 GMT 2011


>>>>> "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



More information about the Gdb-patches mailing list