mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-28 22:21:26 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user