This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Don't error out when variable not available
- From: Daniel Jacobowitz <drow at false dot org>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 2 Jan 2005 17:57:45 -0500
- Subject: Re: Don't error out when variable not available
- References: <m3wtuvqyly.fsf@igel.m5r.de>
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 = <optimized out>".
--
Daniel Jacobowitz