From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 970 invoked by alias); 2 Jan 2005 22:57:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 913 invoked from network); 2 Jan 2005 22:57:48 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 2 Jan 2005 22:57:48 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1ClEfR-0007Qe-UL; Sun, 02 Jan 2005 17:57:46 -0500 Date: Sun, 02 Jan 2005 22:57:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: gdb-patches@sources.redhat.com Subject: Re: Don't error out when variable not available Message-ID: <20050102225745.GA28488@nevyn.them.org> Mail-Followup-To: Andreas Schwab , gdb-patches@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2005-01/txt/msg00003.txt.bz2 On Sun, Jan 02, 2005 at 11:01:45PM +0100, Andreas Schwab wrote: > With the introduction of DWARF location lists it became impossible to get > the full list of local variables of a function when any of them is not > available. This is especially annoying when the first local or function > parameter is missing. Here is an attempt at correcting this. It is > suboptimal because it still prints the error message including the newline > which badly messes up the output. Any idea how to fix that properly? How about reusing the LOC_OPTIMIZED_OUT handling to describe this case? I believe that will print "foo = ". -- Daniel Jacobowitz