Don't error out when variable not available

Daniel Jacobowitz drow@false.org
Sun Jan 2 22:57:00 GMT 2005


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



More information about the Gdb-patches mailing list