diff options
author | Fernando Nasser <fnasser@redhat.com> | 2000-11-06 23:12:29 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2000-11-06 23:12:29 +0000 |
commit | 8a1a01128de8adbea128525c11808b57bc9b04cd (patch) | |
tree | 715a34908306fd5192ae093617871d1780c6eb26 /gdb/varobj.c | |
parent | c4dfa77f430fbd0eb5ec1d22c2b29581091ab0fe (diff) | |
download | gdb-8a1a01128de8adbea128525c11808b57bc9b04cd.zip gdb-8a1a01128de8adbea128525c11808b57bc9b04cd.tar.gz gdb-8a1a01128de8adbea128525c11808b57bc9b04cd.tar.bz2 |
2000-11-06 Fernando Nasser <fnasser@totem.toronto.redhat.com>
* wrapper.c (gdb_value_assign): New function. Longjump-free
version of value_assign.
(wrap_value_assign): New function. Wrapper for value_assign.
* wrapper.h: Add declaration for the above.
* varobj.c (varobj_set_value): Use gdb_value_assign, not
value_assign which can longjump. Do not change varobj value if
assign fails.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index fe3f940..1ebf21c 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -818,7 +818,8 @@ varobj_set_value (struct varobj *var, char *expression) } VALUE_ADDRESS (temp) += offset; - val = value_assign (temp, value); + if (!gdb_value_assign (temp, value, &val)) + return 0; VALUE_ADDRESS (val) -= offset; value_free (var->value); release_value (val); |