[
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.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer