From 10fb19b6abeacb92b9d078dac7ad7fcfae497076 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Wed, 24 Jan 2007 22:04:48 +0000 Subject: [PATCH] 2007-01-24 Jim Blandy * 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.) --- gdb/ChangeLog | 6 ++++++ gdb/dwarf2loc.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bcb1a1d8d2b..b3790b80c5a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-01-24 Jim Blandy + + * 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 * varobj.c (c_value_of_root, c_value_of_child) diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 684a9bc22fc..a179566cfa5 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; -- 2.30.2