Public Member Functions | |
def | __init__ |
def | elided |
def | function |
def | address |
def | filename |
def | frame_args |
def | frame_locals |
def | line |
def | inferior_frame |
def | __init__ |
def | elided |
def | function |
def | address |
def | filename |
def | frame_args |
def | frame_locals |
def | line |
def | inferior_frame |
Basic implementation of a Frame Decorator
This base frame decorator decorates a frame or another frame decorator, and provides convenience methods. If this object is wrapping a frame decorator, defer to that wrapped object's method if it has one. This allows for frame decorators that have sub-classed FrameDecorator object, but also wrap other frame decorators on the same frame to correctly execute. E.g If the result of frame filters running means we have one gdb.Frame wrapped by multiple frame decorators, all sub-classed from FrameDecorator, the resulting hierarchy will be: Decorator1 -- (wraps) Decorator2 -- (wraps) FrameDecorator -- (wraps) gdb.Frame In this case we have two frame decorators, both of which are sub-classed from FrameDecorator. If Decorator1 just overrides the 'function' method, then all of the other methods are carried out by the super-class FrameDecorator. But Decorator2 may have overriden other methods, so FrameDecorator will look at the 'base' parameter and defer to that class's methods. And so on, down the chain.
Definition at line 27 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.__init__ | ( | self, | |
base | |||
) |
Definition at line 60 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.__init__ | ( | self, | |
base | |||
) |
Definition at line 60 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.address | ( | self | ) |
Return the address of the frame's pc
Definition at line 122 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.address | ( | self | ) |
Return the address of the frame's pc
Definition at line 122 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.elided | ( | self | ) |
Return any elided frames that this class might be wrapping, or None.
Definition at line 77 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.elided | ( | self | ) |
Return any elided frames that this class might be wrapping, or None.
Definition at line 77 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.filename | ( | self | ) |
Return the filename associated with this frame, detecting and returning the appropriate library name is this is a shared library.
Definition at line 131 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.filename | ( | self | ) |
Return the filename associated with this frame, detecting and returning the appropriate library name is this is a shared library.
Definition at line 131 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.frame_args | ( | self | ) |
Return an iterable of frame arguments for this frame, if any. The iterable object contains objects conforming with the Symbol/Value interface. If there are no frame arguments, or if this frame is deemed to be a special case, return None.
Definition at line 147 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.frame_args | ( | self | ) |
Return an iterable of frame arguments for this frame, if any. The iterable object contains objects conforming with the Symbol/Value interface. If there are no frame arguments, or if this frame is deemed to be a special case, return None.
Definition at line 147 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.frame_locals | ( | self | ) |
Return an iterable of local variables for this frame, if any. The iterable object contains objects conforming with the Symbol/Value interface. If there are no frame locals, or if this frame is deemed to be a special case, return None.
Definition at line 163 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.frame_locals | ( | self | ) |
Return an iterable of local variables for this frame, if any. The iterable object contains objects conforming with the Symbol/Value interface. If there are no frame locals, or if this frame is deemed to be a special case, return None.
Definition at line 163 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.function | ( | self | ) |
Return the name of the frame's function or an address of the function of the frame. First determine if this is a special frame. If not, try to determine filename from GDB's frame internal function API. Finally, if a name cannot be determined return the address. If this function returns an address, GDB will attempt to determine the function name from its internal minimal symbols store (for example, for inferiors without debug-info).
Definition at line 85 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.function | ( | self | ) |
Return the name of the frame's function or an address of the function of the frame. First determine if this is a special frame. If not, try to determine filename from GDB's frame internal function API. Finally, if a name cannot be determined return the address. If this function returns an address, GDB will attempt to determine the function name from its internal minimal symbols store (for example, for inferiors without debug-info).
Definition at line 85 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.inferior_frame | ( | self | ) |
Return the gdb.Frame underpinning this frame decorator.
Definition at line 197 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.inferior_frame | ( | self | ) |
Return the gdb.Frame underpinning this frame decorator.
Definition at line 197 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.line | ( | self | ) |
Return line number information associated with the frame's pc. If symbol table/line information does not exist, or if this frame is deemed to be a special case, return None
Definition at line 179 of file FrameDecorator.py.
def gdb.FrameDecorator.FrameDecorator.line | ( | self | ) |
Return line number information associated with the frame's pc. If symbol table/line information does not exist, or if this frame is deemed to be a special case, return None
Definition at line 179 of file FrameDecorator.py.