[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.
This commit is contained in:
parent
573cc2e57d
commit
df2eb078c0
4 changed files with 16 additions and 2 deletions
|
@ -150,6 +150,9 @@ gdb_test_no_output "disable xmethod progspace E_methods;method_int" \
|
|||
"disable xmethod progspace E_methods;method_int"
|
||||
gdb_test "info xmethod progspace E_methods;method_int" ".* \\\[disabled\\\]" \
|
||||
"info xmethod xmethods E_methods;method_int"
|
||||
gdb_test_no_output "disable xmethod progspace G_methods" "Disable G_methods 2"
|
||||
gdb_test "info xmethod progspace" ".*G_methods \\\[disabled\\\].*" \
|
||||
"info xmethod progspace"
|
||||
|
||||
# PR 18285
|
||||
# First make sure both are enabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue