diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-02-08 17:39:48 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-02-08 17:39:48 +0000 |
commit | 7af9851d0de86d091b53e15df22856f8b44a9131 (patch) | |
tree | e9f2aea41c2ba57ff6a82a1ab9c484f265accd76 /gdb/varobj.c | |
parent | 3c0a29609148689146c1024a61721e0ae9f0e9fd (diff) | |
download | gdb-7af9851d0de86d091b53e15df22856f8b44a9131.zip gdb-7af9851d0de86d091b53e15df22856f8b44a9131.tar.gz gdb-7af9851d0de86d091b53e15df22856f8b44a9131.tar.bz2 |
* varobj.c (install_new_value): Only call value_get_print_value
if changeable.
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 578a4d1..be0f2bc 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -953,7 +953,7 @@ install_new_value (struct varobj *var, struct value *value, int initial) /* If the type is changeable, compare the old and the new values. If this is the initial assignment, we don't have any old value to compare with. */ - if (initial) + if (initial && changeable) var->print_value = value_get_print_value (value, var->format); else if (changeable) { |