diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-06 18:59:57 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-06 18:59:57 +0000 |
commit | 731145cb171b848d564a696e81153166524eb35a (patch) | |
tree | ab76e30954e6d4f133e8795e385d0fe84ecfd2b8 /gdb/mi | |
parent | cd6fa7fd8801453ab5caef588fc772d14cb1ee9a (diff) | |
download | gdb-731145cb171b848d564a696e81153166524eb35a.zip gdb-731145cb171b848d564a696e81153166524eb35a.tar.gz gdb-731145cb171b848d564a696e81153166524eb35a.tar.bz2 |
2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
PR mi/14741:
* mi/mi-cmd-var.c (varobj_update_one): Take value of
attribute "dynamic" and "displayhint" from printed child,
not the root variable.
* gdb.python/py-mi.exp: Correct expected results for attribute
"dynamic" returned by -var-update.
Add test case for correct handling of "diplayhint" for children
of dynamic varobjs.
* gdb.python/py-prettyprint.c (set_itme): New function.
(bug_14741) New function.
(main) Add call to bug_14741().
* gdb.python/py-prettyprint.py (class ArrayPrinter): New class.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index dc47bc1..6416d7d 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -793,14 +793,14 @@ varobj_update_one (struct varobj *var, enum print_values print_values, ui_out_field_int (uiout, "new_num_children", varobj_get_num_children (r->varobj)); - display_hint = varobj_get_display_hint (var); + display_hint = varobj_get_display_hint (r->varobj); if (display_hint) { ui_out_field_string (uiout, "displayhint", display_hint); xfree (display_hint); } - if (varobj_pretty_printed_p (var)) + if (varobj_pretty_printed_p (r->varobj)) ui_out_field_int (uiout, "dynamic", 1); varobj_get_child_range (r->varobj, &from, &to); |