Re: Threads variable relocation on x86_64

Daniel Jacobowitz
2005-04-26T13:23:07Z

On Tue, Apr 26, 2005 at 01:55:59PM +0200, Marion Deveaud wrote:
> (gdb) thread 2
> [Switching to thread 2 (Thread 1075837280 (LWP 5600))]#0 MyThreadFunc1
> (arg=Variable "arg" is not available.
> ) at hello_world.c:22
> 22 while(1);
>
>
> Did someone already face similar problem ? The major issue comes when
> using DDD and switching between threads.
> Should I use different compiler options ? I tried dwarf2 related flags,
> no success.
> The same tests are running well on a I32 platform.
>
> Thanks in advance for any hints you could give me.

This error is not related to threads. The variable isn't available, so
GDB can't display it.

CVS versions of GDB will show a more useful output.

--
Daniel Jacobowitz
CodeSourcery, LLC