diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-04 21:59:10 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-04 21:59:10 +0000 |
commit | 5e572bb44adb067e5d4daf50169243b610954061 (patch) | |
tree | 0483aa01f18e2d862a4e83a31ac70b9e9cf715b0 /gdb/varobj.c | |
parent | 74a44383f0a7ceb4976b51dbf0a8709df34b8e24 (diff) | |
download | gdb-5e572bb44adb067e5d4daf50169243b610954061.zip gdb-5e572bb44adb067e5d4daf50169243b610954061.tar.gz gdb-5e572bb44adb067e5d4daf50169243b610954061.tar.bz2 |
* Makefile.in (eval.o): Update dependencies.
* eval.c: Include "ui-out.h" and "exceptions.h".
(evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
Use value_zero if an error occurs when avoiding side effects.
* varobj.c (c_value_of_root): Initialize new_val.
* gdb.mi/mi-var-cmd.exp: Add tests for unreadable varobjs.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index a9f8ee0..33cea73 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1908,7 +1908,7 @@ c_name_of_child (struct varobj *parent, int index) static struct value * c_value_of_root (struct varobj **var_handle) { - struct value *new_val; + struct value *new_val = NULL; struct varobj *var = *var_handle; struct frame_info *fi; int within_scope; |