aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-var.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-04-13 09:33:49 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-04-13 09:33:49 +0000
commitfcacd99f87bf1f39ba0b3fde4a71b2876c20bd70 (patch)
tree75fab46541391f348714e21c53206075958367ae /gdb/mi/mi-cmd-var.c
parent350fc95b2b48a859478efc3ba0ba99c56e7971aa (diff)
downloadgdb-fcacd99f87bf1f39ba0b3fde4a71b2876c20bd70.zip
gdb-fcacd99f87bf1f39ba0b3fde4a71b2876c20bd70.tar.gz
gdb-fcacd99f87bf1f39ba0b3fde4a71b2876c20bd70.tar.bz2
Fix @-varobjs.
* varobj.c (value_of_root): Update the expression for floating varobjs. * mi/mi-cmd-var.c (varobj_update_one): If type has changed, report that.
Diffstat (limited to 'gdb/mi/mi-cmd-var.c')
-rw-r--r--gdb/mi/mi-cmd-var.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c
index ddea2cf..9c0df69 100644
--- a/gdb/mi/mi-cmd-var.c
+++ b/gdb/mi/mi-cmd-var.c
@@ -683,6 +683,7 @@ varobj_update_one (struct varobj *var, enum print_values print_values,
break;
case TYPE_CHANGED:
ui_out_field_string (uiout, "in_scope", "true");
+ ui_out_field_string (uiout, "type_changed", "true");
ui_out_field_string (uiout, "new_type", varobj_get_type(var));
ui_out_field_int (uiout, "new_num_children",
varobj_get_num_children(var));