Utilities for defining xmethods
gdb.xmethod.register_xmethod_matcher |
( |
| locus, |
|
|
| matcher, |
|
|
| replace = False ) |
Registers a xmethod matcher MATCHER with a LOCUS.
Arguments:
locus: The locus in which the xmethods should be registered.
It can be 'None' to indicate that the xmethods should be
registered globally. Or, it could be a gdb.Objfile or a
gdb.Progspace object in which the xmethods should be
registered.
matcher: The xmethod matcher to register with the LOCUS. It
should be an instance of 'XMethodMatcher' class.
replace: If True, replace any existing xmethod matcher with the
same name in the locus. Otherwise, if a matcher with the same name
exists in the locus, raise an exception.
Definition at line 238 of file xmethod.py.
References gdb.xmethod._lookup_xmethod_matcher(), and gdb.xmethod._validate_xmethod_matcher().