From 7af9851d0de86d091b53e15df22856f8b44a9131 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 8 Feb 2007 17:39:48 +0000 Subject: [PATCH] * varobj.c (install_new_value): Only call value_get_print_value if changeable. --- gdb/ChangeLog | 5 +++++ gdb/varobj.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 224e89a9929..38ef25aa339 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-02-08 Daniel Jacobowitz + + * varobj.c (install_new_value): Only call value_get_print_value + if changeable. + 2007-02-08 Daniel Jacobowitz Reported by timeless@gmail.com: diff --git a/gdb/varobj.c b/gdb/varobj.c index 578a4d1717c..be0f2bcdf26 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) { -- 2.30.2