This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] info threads takes an argument
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 11 Feb 2011 10:08:55 +0400
- Subject: Re: [RFC] info threads takes an argument
- References: <4D54964A.2070401@vmware.com>
> 2011-02-10 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
>
> * thread.c (info_threads_command): Process arg as thread id.
This seems like a reasonable enhancement to me. We have the same sort
of feature for Ada (except that we print a more detailed description
of the given task).
You will also need a documentation update...
> + if (arg != NULL && *arg != '\0')
> + {
> + int tmp_tid = strtoul (arg, NULL, 0);
> + if (tmp_tid != 0)
Emtpy line after the variable declaration...
--
Joel