This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Don't error out when variable not available


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]