aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/lib
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@chromium.org>2014-08-04 18:07:43 -0700
committerSiva Chandra <sivachandra@chromium.org>2014-08-15 18:04:47 -0700
commit940df408121be31beed22ef7a5ad133cb1592726 (patch)
tree933448a81b404fd211810e2a95beac72f75b55b7 /gdb/python/lib
parenta0d09f12dbd69d68bb7db0e4c77f3288dec6f81b (diff)
downloadgdb-940df408121be31beed22ef7a5ad133cb1592726.zip
gdb-940df408121be31beed22ef7a5ad133cb1592726.tar.gz
gdb-940df408121be31beed22ef7a5ad133cb1592726.tar.bz2
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.
Diffstat (limited to 'gdb/python/lib')
-rw-r--r--gdb/python/lib/gdb/command/xmethods.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/command/xmethods.py b/gdb/python/lib/gdb/command/xmethods.py
index 55cc81f..206313e 100644
--- a/gdb/python/lib/gdb/command/xmethods.py
+++ b/gdb/python/lib/gdb/command/xmethods.py
@@ -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