From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8999 invoked by alias); 26 Apr 2005 13:50:01 -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 8400 invoked from network); 26 Apr 2005 13:49:38 -0000 Received: from unknown (HELO goliath.siemens.de) (192.35.17.28) by sourceware.org with SMTP; 26 Apr 2005 13:49:38 -0000 Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by goliath.siemens.de (8.12.6/8.12.6) with ESMTP id j3QDnZPV009398; Tue, 26 Apr 2005 15:49:35 +0200 Received: from [139.25.109.72] ([139.25.109.72]) by mail3.siemens.de (8.12.6/8.12.6) with ESMTP id j3QDnZMm030188; Tue, 26 Apr 2005 15:49:35 +0200 Message-ID: <426E479A.4070205@siemens.com> Date: Tue, 26 Apr 2005 16:54:00 -0000 From: Marion Deveaud User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb@sources.redhat.com Subject: Re: Threads variable relocation on x86_64 References: <426E2C4F.2090500@siemens.com> <20050426131957.GB25003@nevyn.them.org> In-Reply-To: <20050426131957.GB25003@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-04/txt/msg00195.txt.bz2 Daniel Jacobowitz wrote: > 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. > Updating to CVS version helped ! Thanks.