Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Thread names in CDT debug view?

> 
> On Mon, Jan 12, 2004 at 11:55:06AM -0500, Alain Magloire wrote:
> > > 
> > > The way we determine native thread names in GDB is by using the "info threads" GDB
> > > command implemented in a custom GDB remote target connection. I believe that this
> > > approach is quite common in the embedded world. On Solaris, the "info threads" GDB
> > > command reports the Solaris LWP id. I don't remember what OS information "info
> > > threads" reports on Linux and Windows.
> > > 
> > 
> > The problem, how do you get, in a portable way, the name of a thread in gdb.
> > 
> > 1) GDB/MI:
> > 
> >      -thread-list-ids
> >      ^done,thread-ids={thread-id="3",thread-id="2",thread-id="1"}, number-of-threads="3"
> > 
> > If this command could be enhance to provide, current selected thread and thread names,
> > that would be perfect.
> 
> If someone files a GDB PR about this, I'm sure GDB can be enhanced to
> supply the thread names.
> 

Done.

mi/1513: Extract the thread name

So Daniel, we can expect this in GDB-6.x 8-)
There are also other "interesting" PR in this category if you are in the vicinity 8-) 8-)




Back to the top