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.
This commit is contained in:
parent
a0d09f12db
commit
940df40812
4 changed files with 23 additions and 11 deletions
|
@ -140,7 +140,7 @@ def print_xm_info(xm_dict, name_re):
|
|||
|
||||
def set_xm_status1(xm_dict, name_re, status):
|
||||
"""Set the status (enabled/disabled) of a dictionary of xmethods."""
|
||||
for locus_str, matchers in xm_dict.iteritems():
|
||||
for locus_str, matchers in xm_dict.items():
|
||||
for matcher in matchers:
|
||||
if not name_re:
|
||||
# If the name regex is missing, then set the status of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue