From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5655 invoked by alias); 26 Apr 2005 13:23:07 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3258 invoked from network); 26 Apr 2005 13:19:58 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 26 Apr 2005 13:19:58 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DQPyn-0006Xb-A2; Tue, 26 Apr 2005 09:19:57 -0400 Date: Tue, 26 Apr 2005 13:50:00 -0000 From: Daniel Jacobowitz To: Marion Deveaud Cc: gdb@sources.redhat.com Subject: Re: Threads variable relocation on x86_64 Message-ID: <20050426131957.GB25003@nevyn.them.org> Mail-Followup-To: Marion Deveaud , gdb@sources.redhat.com References: <426E2C4F.2090500@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426E2C4F.2090500@siemens.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-04/txt/msg00194.txt.bz2 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