Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jan 2005 18:50:16 GMT
From:      "Niall Douglas" <s_sourceforge@nedprod.com>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/76821: Add access to gdb unique thread id
Message-ID:  <200501291850.j0TIoGrt096050@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/76821; it has been noted by GNATS.

From: "Niall Douglas" <s_sourceforge@nedprod.com>
To: Daniel Eischen <deischen@freebsd.org>
Cc: freebsd-gnats-submit@freebsd.org, freebsd-threads@freebsd.org
Subject: Re: threads/76821: Add access to gdb unique thread id
Date: Sat, 29 Jan 2005 18:47:11 -0000

 On 29 Jan 2005 at 13:28, Daniel Eischen wrote:
 
 > > It would be really handy if a unique integer could be obtained from
 > > struct
 > pthread_t so that one can print debug information to stdout like so:
 > 
 > You can use pthread_getspecific() or TLS.
 
 Doesn't help from the point of view of seeing which threads in GDB 
 match which debug output statements. On Linux this is easy as 
 pthread_t is a uint printed by gdb.
 
 How about getting gdb to print the pthread_t pointer address instead? 
 I don't care what the number is, so long as I can compare the thread 
 listing in gdb to the debug output and it makes sense!
 
 Cheers,
 Niall
 
 
 


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501291850.j0TIoGrt096050>