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: [RFC] info threads takes an argument


> 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


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