This is the mail archive of the gdb@sources.redhat.com 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: Threads variable relocation on x86_64


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


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