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: New feature: allow thread command to take a LWPID.


Joel,

Is there any existing, generic code that I can utilise to do this ?

Regards,

Scott.

On Fri, Feb 05, 2010 at 07:28:01AM +0400, Joel Brobecker wrote:
I am not super fond of the syntax.  I don't have a better suggestion
though :-(

I agree about the syntax. How about using a command "switch". For instance:

   (gdb) thread THREAD_NO
   (gdb) thread /l LWP

We could even think of adding:

(gdb) thread /t TID

(for the platforms that use the tid rather than the lwp).

--
Joel

-- TANDBERG Telecom UK Ltd Registered in England and Wales No: 3390345. Registered address: Unit 2 Pine Trees, Chertsey Lane, Staines, Middlesex, TW18 3HR


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