From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20653 invoked by alias); 3 Feb 2007 01:35:09 -0000 Received: (qmail 20645 invoked by uid 22791); 3 Feb 2007 01:35:09 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sat, 03 Feb 2007 01:35:04 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HD9ny-0005Vu-DE for gdb-patches@sourceware.org; Fri, 02 Feb 2007 20:35:02 -0500 Date: Sat, 03 Feb 2007 01:35:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [RFA] [gdb.threads/testsuite] failure while checking backtrace into main Message-ID: <20070203013502.GA21164@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <45C0C028.1050401@st.com> <45C34A05.1060901@st.com> <20070202143631.GA24397@nevyn.them.org> <45C3545A.6020902@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45C3545A.6020902@st.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00025.txt.bz2 On Fri, Feb 02, 2007 at 04:10:18PM +0100, Denis PILAT wrote: > There is no location for argc and argv. It might be a gcc4.1.1 bug, I > don't know how much it can optimize the code, argc and argv are not used. > > For gcc3.3 there are DW_AT_location for both argc and argv. The missing location is strange, since you're compiling without optimization; that's probably a bug. But it's a separate bug that they don't show up in the list; I'd rather fix dwarf2read.c than the test. IIRC the problem is that we use different LOC_* values for function arguments. I have a patch somewhere that used a different mechanism, so that we could mark arguments as LOC_OPTIMIZED_OUT. I'll try to port it to the current GDB next week. -- Daniel Jacobowitz CodeSourcery