GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
gdb.function.caller_is.CallerIs Class Reference
Inheritance diagram for gdb.function.caller_is.CallerIs:

Public Member Functions

 __init__ (self)
 
 invoke (self, name, nframes=1)
 
 __init__ (self)
 
 invoke (self, name, nframes=1)
 

Detailed Description

Check the calling function's name.

Usage: $_caller_is (NAME [, NUMBER-OF-FRAMES])

Arguments:

  NAME: The name of the function to search for.

  NUMBER-OF-FRAMES: How many stack frames to traverse back from the currently
    selected frame to compare with.  If the value is greater than the depth of
    the stack from that point then the result is False.
    The default is 1.

Returns:
  True if the function's name at the specified frame is equal to NAME.

Definition at line 21 of file caller_is.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

gdb.function.caller_is.CallerIs.__init__ ( self)

◆ __init__() [2/2]

gdb.function.caller_is.CallerIs.__init__ ( self)

Definition at line 38 of file caller_is.py.

References gdb.function.caller_is.CallerIs.__init__().

Member Function Documentation

◆ invoke() [1/2]

gdb.function.caller_is.CallerIs.invoke ( self,
name,
nframes = 1 )

Definition at line 41 of file caller_is.py.

◆ invoke() [2/2]

gdb.function.caller_is.CallerIs.invoke ( self,
name,
nframes = 1 )

Definition at line 41 of file caller_is.py.


The documentation for this class was generated from the following files: