diff options
author | Siva Chandra <sivachandra@chromium.org> | 2015-04-25 17:10:30 -0700 |
---|---|---|
committer | Siva Chandra <sivachandra@chromium.org> | 2015-05-08 07:20:04 -0700 |
commit | df2eb078c0a88a44c49de7045a1c163f380a7efc (patch) | |
tree | c6da3560801d7ad9d5d607f846e2ee51daa62afb /gdb/python/lib | |
parent | 573cc2e57db66165b390044338d3a4ad51f36bf8 (diff) | |
download | gdb-df2eb078c0a88a44c49de7045a1c163f380a7efc.zip gdb-df2eb078c0a88a44c49de7045a1c163f380a7efc.tar.gz gdb-df2eb078c0a88a44c49de7045a1c163f380a7efc.tar.bz2 |
[PR python/18291] Fix printing of "disabled" status of xmethod matchers.
gdb/ChangeLog:
PR python/18291
* python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
Print xmethod matcher status.
gdb/testsuite/ChangeLog:
PR python/18291
* gdb.python/py-xmethods.exp: Add tests.
Diffstat (limited to 'gdb/python/lib')
-rw-r--r-- | gdb/python/lib/gdb/command/xmethods.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/lib/gdb/command/xmethods.py b/gdb/python/lib/gdb/command/xmethods.py index 37ed2c1..0788a81 100644 --- a/gdb/python/lib/gdb/command/xmethods.py +++ b/gdb/python/lib/gdb/command/xmethods.py @@ -117,7 +117,7 @@ def get_method_matchers_in_loci(loci, locus_re, matcher_re): def print_xm_info(xm_dict, name_re): """Print a dictionary of xmethods.""" - def get_status_string(method): + def get_status_string(m): if not m.enabled: return " [disabled]" else: @@ -130,7 +130,7 @@ def print_xm_info(xm_dict, name_re): continue print ("Xmethods in %s:" % locus_str) for matcher in xm_dict[locus_str]: - print (" %s" % matcher.name) + print (" %s%s" % (matcher.name, get_status_string(matcher))) if not matcher.methods: continue for m in matcher.methods: |