2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
authorTom Tromey <tromey@redhat.com>
Thu, 6 Dec 2012 18:59:57 +0000 (18:59 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 6 Dec 2012 18:59:57 +0000 (18:59 +0000)
commit731145cb171b848d564a696e81153166524eb35a
treeab76e30954e6d4f133e8795e385d0fe84ecfd2b8
parentcd6fa7fd8801453ab5caef588fc772d14cb1ee9a
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.
gdb/ChangeLog
gdb/mi/mi-cmd-var.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-mi.exp
gdb/testsuite/gdb.python/py-prettyprint.c
gdb/testsuite/gdb.python/py-prettyprint.py