* varobj.c (install_new_value): Only call value_get_print_value
if changeable.
This commit is contained in:
parent
3c0a296091
commit
7af9851d0d
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* varobj.c (install_new_value): Only call value_get_print_value
|
||||
if changeable.
|
||||
|
||||
2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
Reported by timeless@gmail.com:
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue