diff options
author | Jim Blandy <jimb@codesourcery.com> | 2007-01-24 22:04:48 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2007-01-24 22:04:48 +0000 |
commit | 10fb19b6abeacb92b9d078dac7ad7fcfae497076 (patch) | |
tree | 783d2ce2187ff1f99b8096678c1ba78c71d1d037 | |
parent | 7bc4c13c6114fe7f1b243fbe37001452d51f054c (diff) | |
download | gdb-10fb19b6abeacb92b9d078dac7ad7fcfae497076.zip gdb-10fb19b6abeacb92b9d078dac7ad7fcfae497076.tar.gz gdb-10fb19b6abeacb92b9d078dac7ad7fcfae497076.tar.bz2 |
2007-01-24 Jim Blandy <jimb@codesourcery.com>
* dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
expression is empty, bother to return the 'optimized out' value we
construct. (Thanks to Carl Burch.)
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2loc.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bcb1a1d..b3790b8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-01-24 Jim Blandy <jimb@codesourcery.com> + + * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location + expression is empty, bother to return the 'optimized out' value we + construct. (Thanks to Carl Burch.) + 2007-01-24 Vladimir Prus <vladimir@codesourcery.com> * varobj.c (c_value_of_root, c_value_of_child) diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 684a9bc..a179566 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -201,6 +201,7 @@ dwarf2_evaluate_loc_desc (struct symbol *var, struct frame_info *frame, retval = allocate_value (SYMBOL_TYPE (var)); VALUE_LVAL (retval) = not_lval; set_value_optimized_out (retval, 1); + return retval; } baton.frame = frame; |