Re: info thread

Nick Roberts
2006-09-19T20:55:58Z

> Where can I find the specifications for the MI commands
> -thread-list-all-threads and -thread-info ?

There is no specification so we can only guess what was intended. Perhaps
-thread-info was just meant to give info for the selected thread which
presumably would not take long to compute even with all the details. In any
case, as Daniel says, the problem is to devise one(s) which is/are generally
useful.

I would guess the reason that they haven't already been implemented is that
the other information is kernel/OS dependent e.g on GNU/Linux I get:

(gdb) inf threads
5 Thread -1240261728 (LWP 2575) 0x00c12b68 in clone () from /lib/libc.so.6
4 Thread -1229771872 (LWP 2574) 0x08048863 in myproc (ptr_i=0xbff15ca4)
at pthreadtest.c:75
3 Thread -1219282016 (LWP 2573) 0x00c12b68 in clone () from /lib/libc.so.6
2 Thread -1208792160 (LWP 2572) 0x08048833 in myproc (ptr_i=0xbff15c9c)
at pthreadtest.c:78
* 1 Thread -1208789312 (LWP 2554) main () at pthreadtest.c:99

but presumably not all systems have the concept of a lightweight process,
and maybe the numbering of the threads is different.

--
Nick http://www.inet.net.nz/~nickrob