Re: Don't error out when variable not available

Daniel Jacobowitz
2005-01-02T22:57:53Z

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