This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: thread local storage (__thread) variables aren't working in gdb 6.5/6.6?

On Tue, Jun 19, 2007 at 01:56:51PM -0700, John Bates wrote:
> On 6/19/07, Daniel Jacobowitz <> wrote:
> > On Tue, Jun 19, 2007 at 01:22:04PM -0700, John Bates wrote:
> > > I can't find any confirmation of support or non-support of thread
> > > local storage on the web or in the gdb documentation. I already tried
> > > 6.6 and it was the same problem. The test below seems to confirm
> > > non-support on my fedora core 6 (kernel 2.6.18) x86 distribution with
> > > gdb 6.5. Please let me know if I am doing something wrong for
> > > debugging __thread global variables.
> >
> > So far, they are only supported if you are linked to libpthread.  Jan
> > K. was working on this earlier.
> I tried linking the program with -lpthread, if that's what you meant,
> and the same problem is occuring. Or do you mean linking gdb with
> pthread somehow?

Normally that fixes it.  It might be some different problem, sorry.

Daniel Jacobowitz

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]