Date: Thu, 30 Jun 2011 14:28:23 +0800 From: David Xu <davidxu@freebsd.org> To: John Schumacher <schumjs@gmail.com> Cc: freebsd-threads@freebsd.org Subject: Re: Using fbsd-threads.c versus thread-db.c (gdbserver) Message-ID: <4E0C1787.8030102@freebsd.org> In-Reply-To: <BANLkTik5e87v59kP6emD=D5H8JmghTcu4Q@mail.gmail.com> References: <BANLkTik5e87v59kP6emD=D5H8JmghTcu4Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2011/06/30 01:36, John Schumacher wrote: > Question: > Does anyone understand the differences between freebsd-threads.c and > thread-db.c in FreeBSD? > Linux's gdbserver makes calls to thread-db.c and thread-db.c sits in the > gdbserver folder in the 8.1 FreeBSD distro. > However, I notice that fbsd-threads.c (which sits in > FreeBSD\8.1\builds\8.1\kernel\source\gnu\usr.bin\gdb\libgdb) has similar > functionality. > Is the thread-db.c sitting in the gdbserver a relic from when it was ported > over, and doesn't work with FreeBSD? Should one use the fbsd-threads.c to > query the kernel for new and existing threads? > AFAIK, thread-db.c is for Linux only, fbsd-threads.c is FreeBSD code which implements gdb's target, the code depends on external library called libthread_db which is a standard to query threads. > Thanks > -John >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E0C1787.8030102>