Align behavior of xmethod commands with that of pretty-printer commands.
authorSiva Chandra <sivachandra@chromium.org>
Wed, 18 Jun 2014 10:46:37 +0000 (03:46 -0700)
committerSiva Chandra <sivachandra@chromium.org>
Mon, 23 Jun 2014 11:57:51 +0000 (04:57 -0700)
commit70afc5b72d36dabf0a152e219ac981b2b45c138a
tree8115c8f9c2bbf762873a7b05c7c5c99473743c7c
parentb972bd9c133c8acd3f5ce8d05a4fdfc85aee2c15
Align behavior of xmethod commands with that of pretty-printer commands.

Currently, the xmethod commands lookup xmethod matchers in the current
progspace even if the locus regular expression matches the progspace's
filename.  Pretty printer commands do not match the current progspace's
filename.

gdb/

* python/lib/gdb/command/xmethods.py
(get_method_matchers_in_loci):  Lookup xmethod matchers in the
current progspace only if the string "progspace" matches LOCUS_RE.

gdb/testsuite

* gdb.python/py-xmethods.exp: Use "progspace" instead of the
progspace's filename in 'info', 'enable' and 'disable' command
tests.
gdb/ChangeLog
gdb/python/lib/gdb/command/xmethods.py
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-xmethods.exp