aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-01-24 22:04:48 +0000
committerJim Blandy <jimb@codesourcery.com>2007-01-24 22:04:48 +0000
commit10fb19b6abeacb92b9d078dac7ad7fcfae497076 (patch)
tree783d2ce2187ff1f99b8096678c1ba78c71d1d037 /gdb/dwarf2loc.c
parent7bc4c13c6114fe7f1b243fbe37001452d51f054c (diff)
downloadgdb-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.)
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c1
1 files changed, 1 insertions, 0 deletions
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;