Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* pthread_t ids of threads not showed by "thread info"
@ 2010-04-22 15:19 Stefano Sabatini
  2010-04-22 15:44 ` Stefano Sabatini
                   ` (2 more replies)
  0 siblings, 3 replies; 33+ messages in thread
From: Stefano Sabatini @ 2010-04-22 15:19 UTC (permalink / raw)
  To: gdb Mailing List

Hi all,

$ gdb --version
GNU gdb (GDB) 7.1

(gdb) info threads
* 9 Thread 25919  0x0040cc7d in PSafeObject::LockReadOnly (this=0xb6d3d1d8)
    at ../common/safecoll.cxx:144
  8 Thread 25920  0x00885402 in __kernel_vsyscall ()
  7 Thread 25921  0x00885402 in __kernel_vsyscall ()
  6 Thread 25922  0x00885402 in __kernel_vsyscall ()
  5 Thread 25927  0x00885402 in __kernel_vsyscall ()
  4 Thread 25928  0x00885402 in __kernel_vsyscall ()
  3 Thread 16215  0x00885402 in __kernel_vsyscall ()
  2 Thread 16216  0x00885402 in __kernel_vsyscall ()
  1 Thread 25917  0x00885402 in __kernel_vsyscall ()
(gdb) help info thread
IDs of currently known threads.

This shows the gdb thread number, the process ID and I don't know
what's contained in the fourth column, but that's for sure cannot be
the same as the pthread_t id as it is the same for all the threads.

On another machine I get this output:
  3 Thread 0xb7642b70 (LWP 3334)  (running)
  2 Thread 0xb7e43b70 (LWP 3333)  (running)
* 1 Thread 0xb7e446c0 (LWP 3327)  0xb7fe1424 in __kernel_vsyscall ()

Can you explain the differences, and why are there in the first place?

Also in the first scenario I cannot get the pthread_t information, which
is shown in the third column of the second scenario.

To me this sounds like a real puzzle, I'll be grateful to whom will
help me to figure it out, also a pointer to the location in the gdb
sources where the "info thread" command is executed would be welcome.

TIA, regards.


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2010-08-18 14:17 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22 15:19 pthread_t ids of threads not showed by "thread info" Stefano Sabatini
2010-04-22 15:44 ` Stefano Sabatini
2010-04-22 16:59   ` Jan Kratochvil
2010-04-23  7:51     ` Stefano Sabatini
2010-04-23 10:25       ` Jan Kratochvil
2010-04-23 14:21         ` Stefano Sabatini
2010-04-23 14:25           ` Jan Kratochvil
2010-04-23 15:36             ` Stefano Sabatini
2010-04-23 15:46               ` Jan Kratochvil
2010-04-26  8:38                 ` Stefano Sabatini
2010-04-26  9:04                   ` Jan Kratochvil
2010-04-26 11:07                     ` Stefano Sabatini
2010-04-26 11:25                       ` Jan Kratochvil
2010-04-23 14:29           ` Stefano Sabatini
2010-04-23 11:50   ` Pedro Alves
2010-04-23 12:31     ` Mark Kettenis
2010-04-23 12:47       ` Pedro Alves
2010-04-23 15:37         ` Mark Kettenis
2010-04-23 15:51           ` Pedro Alves
2010-08-04 14:36             ` Pedro Alves
2010-08-04 14:57               ` Mark Kettenis
2010-08-04 15:29                 ` Pedro Alves
2010-08-04 16:53               ` Ulrich Weigand
2010-08-04 17:14                 ` Pedro Alves
2010-08-04 17:40                   ` Pedro Alves
2010-08-04 17:44                     ` Ulrich Weigand
2010-08-04 18:20                       ` Pedro Alves
2010-08-04 18:34                         ` Ulrich Weigand
2010-08-04 20:41                           ` Pedro Alves
2010-08-04 17:45                     ` Ulrich Weigand
2010-04-22 20:52 ` Petr Hluzín
2010-04-22 20:56   ` Daniel Jacobowitz
2010-08-18 14:17 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox