GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
gdb.FrameDecorator.FrameDecorator Class Reference
Inheritance diagram for gdb.FrameDecorator.FrameDecorator:
gdb.FrameDecorator._FrameDecoratorBase gdb.FrameDecorator._FrameDecoratorBase

Public Member Functions

 filename (self)
 
 filename (self)
 
- Public Member Functions inherited from gdb.FrameDecorator._FrameDecoratorBase
 __init__ (self, base)
 
 elided (self)
 
 function (self)
 
 address (self)
 
 frame_args (self)
 
 frame_locals (self)
 
 line (self)
 
 inferior_frame (self)
 
 __init__ (self, base)
 
 elided (self)
 
 function (self)
 
 address (self)
 
 frame_args (self)
 
 frame_locals (self)
 
 line (self)
 
 inferior_frame (self)
 

Protected Attributes

 _base
 
- Protected Attributes inherited from gdb.FrameDecorator._FrameDecoratorBase
 _base
 

Detailed Description

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 152 of file FrameDecorator.py.

Member Function Documentation

◆ filename() [1/2]

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 181 of file FrameDecorator.py.

References gdb.FrameDecorator._FrameDecoratorBase._base, gdb.FrameDecorator.FrameDecorator._base, gdb.FrameDecorator.DAPFrameDecorator._base, gdb.FrameDecorator.FrameDecorator.filename(), gdb.FrameDecorator._FrameDecoratorBase.inferior_frame(), and gdb.solib_name().

◆ filename() [2/2]

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 181 of file FrameDecorator.py.

Referenced by gdb.FrameDecorator.FrameDecorator.filename().

Member Data Documentation

◆ _base

gdb.FrameDecorator.FrameDecorator._base
protected

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