* mi/mi-cmd-var.c (varobj_update_one): Print new
value for variable objects that changed type.
This commit is contained in:
parent
603ba1de0b
commit
8e91f0232c
4 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
* mi/mi-cmd-var.c (varobj_update_one): Print new
|
||||
value for variable objects that changed type.
|
||||
|
||||
2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
* varobj.c (varobj_invalidate): Don't touch floating
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
* gdb.mi/var-cmd.c (do_at_tests): Verify that
|
||||
'-var-update --all-values' reports new value even the type
|
||||
of a variable object has changed.
|
||||
|
||||
2008-04-18 Craig Silverstein <csilvers@google.com>
|
||||
|
||||
* gdb.dwarf2/dw2-compressed.S, gdb.dwarf2/dw2-compressed.exp: New
|
||||
|
|
|
@ -450,6 +450,13 @@ void do_at_tests ()
|
|||
:*/
|
||||
i += 2.0;
|
||||
}
|
||||
{
|
||||
float i = 19;
|
||||
/*:
|
||||
mi_gdb_test "-var-update --all-values F" {.*value="19".*} "update F (--all-values)"
|
||||
:*/
|
||||
i += 2.0;
|
||||
}
|
||||
i++;
|
||||
/*:
|
||||
mi_varobj_update_with_type_change F "int" "0" "update F (3)"
|
||||
|
|
Loading…
Reference in a new issue