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.)
This commit is contained in:
parent
7bc4c13c61
commit
10fb19b6ab
2 changed files with 7 additions and 0 deletions
|
@ -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>
|
2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
|
||||||
|
|
||||||
* varobj.c (c_value_of_root, c_value_of_child)
|
* varobj.c (c_value_of_root, c_value_of_child)
|
||||||
|
|
|
@ -201,6 +201,7 @@ dwarf2_evaluate_loc_desc (struct symbol *var, struct frame_info *frame,
|
||||||
retval = allocate_value (SYMBOL_TYPE (var));
|
retval = allocate_value (SYMBOL_TYPE (var));
|
||||||
VALUE_LVAL (retval) = not_lval;
|
VALUE_LVAL (retval) = not_lval;
|
||||||
set_value_optimized_out (retval, 1);
|
set_value_optimized_out (retval, 1);
|
||||||
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
baton.frame = frame;
|
baton.frame = frame;
|
||||||
|
|
Loading…
Add table
Reference in a new issue