aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-04-19 17:03:20 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-04-19 17:03:20 +0000
commit8e91f0232ca9c286299092c896288b8657c9311b (patch)
tree32908995d006b7370bef473414c7a339a9e9360e /gdb/mi
parent603ba1de0bfd2aabf369a10ed8a645388e466db8 (diff)
downloadgdb-8e91f0232ca9c286299092c896288b8657c9311b.zip
gdb-8e91f0232ca9c286299092c896288b8657c9311b.tar.gz
gdb-8e91f0232ca9c286299092c896288b8657c9311b.tar.bz2
* mi/mi-cmd-var.c (varobj_update_one): Print new
value for variable objects that changed type.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-cmd-var.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c
index 9c0df69..2f009fa 100644
--- a/gdb/mi/mi-cmd-var.c
+++ b/gdb/mi/mi-cmd-var.c
@@ -687,6 +687,8 @@ varobj_update_one (struct varobj *var, enum print_values print_values,
ui_out_field_string (uiout, "new_type", varobj_get_type(var));
ui_out_field_int (uiout, "new_num_children",
varobj_get_num_children(var));
+ if (mi_print_value_p (varobj_get_gdb_type (var), print_values))
+ ui_out_field_string (uiout, "value", varobj_get_value (var));
break;
}
if (mi_version (uiout) > 1)