GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions
gdb.xmethod Namespace Reference

Classes

class  SimpleXMethodMatcher
 
class  XMethod
 
class  XMethodMatcher
 
class  XMethodWorker
 

Functions

 _validate_xmethod_matcher (matcher)
 
 _lookup_xmethod_matcher (locus, name)
 
 register_xmethod_matcher (locus, matcher, replace=False)
 

Detailed Description

Utilities for defining xmethods

Function Documentation

◆ _lookup_xmethod_matcher()

gdb.xmethod._lookup_xmethod_matcher ( locus,
name )
protected

◆ _validate_xmethod_matcher()

gdb.xmethod._validate_xmethod_matcher ( matcher)
protected

◆ register_xmethod_matcher()

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().