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?

So, if the GDB MI command "-thread-list-ids" is enhanced to provide thread names and current
thread in a future GDB 6.x release and a future CDT release would provide support for this
feature the problem will be solved in an elegant way. This is very good!

In the meantime, I guess I have to temporarily hack the org.eclipse.cdt.debug.mi.core plugin to
extract the thread names from the GDB CLI command "info threads" as I described in
http://dev.eclipse.org/mhonarc/lists/cdt-debug-dev/msg00467.html.

Best regards,
Stefan Bylund


Alain Magloire wrote:

> >
> > 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-)
>
> _______________________________________________
> cdt-debug-dev mailing list
> cdt-debug-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-debug-dev
begin:vcard 
n:Bylund;Stefan
tel;cell:+46 709 714 325
tel;work:+46 8 507 143 25
x-mozilla-html:FALSE
url:http://www.ose.com
org:OSE Systems
adr:;;Nytorpsvägen 5;Täby;;183 23;Sweden
version:2.1
email;internet:steby@xxxxxxx
title:Software Engineer
fn:Stefan Bylund
end:vcard

Back to the top