Fix xmethod Python so that it works with Python3.
authorSiva Chandra <sivachandra@chromium.org>
Tue, 5 Aug 2014 01:07:43 +0000 (18:07 -0700)
committerSiva Chandra <sivachandra@chromium.org>
Sat, 16 Aug 2014 01:04:47 +0000 (18:04 -0700)
commit940df408121be31beed22ef7a5ad133cb1592726
tree933448a81b404fd211810e2a95beac72f75b55b7
parenta0d09f12dbd69d68bb7db0e4c77f3288dec6f81b
Fix xmethod Python so that it works with Python3.

gdb/

* python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
'items' methods instead of 'iteritems' method on dictionaries.

gdb/testsuite/

* gdb.python/py-xmethods.py (A_getarrayind)
(E_method_char_worker.__call__, E_method_int_worker.__call__):
Use 'print' with function call syntax.
(E_method_matcher.match): Fix tab vs space indentation mixup.
gdb/ChangeLog
gdb/python/lib/gdb/command/xmethods.py
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-xmethods.py