Attached is a patch which fixes few misses in my original xmethods patch which do not work with Python 3. Tested with Python 2.7.3 and Python 3.2.3. ChangeLog 2014-08-05 Siva Chandra Reddy 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.