Date: Sat, 29 Jan 2005 18:47:11 -0000 From: "Niall Douglas" <s_sourceforge@nedprod.com> To: Daniel Eischen <deischen@freebsd.org> Cc: freebsd-threads@freebsd.org Subject: Re: threads/76821: Add access to gdb unique thread id Message-ID: <41FBDA2F.9191.49B0FC18@localhost> In-Reply-To: <Pine.GSO.4.43.0501291326510.17542-100000@sea.ntplx.net> References: <200501291719.j0THJRKr033945@www.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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?41FBDA2F.9191.49B0FC18>