This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Simplify "info threads" with get_number_or_range
- From: Tom Tromey <tromey at redhat dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 21 Feb 2011 07:59:43 -0700
- Subject: Re: [commit] Simplify "info threads" with get_number_or_range
- References: <4D5F170C.20106@vmware.com>
>>>>> "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