Back to index

python3.2  3.2.2
Public Member Functions
libpython.PyLocals Class Reference

List of all members.

Public Member Functions

def __init__
def invoke

Detailed Description

Definition at line 1659 of file libpython.py.


Constructor & Destructor Documentation

Definition at line 1661 of file libpython.py.

01661 
01662     def __init__(self):
01663         gdb.Command.__init__ (self,
01664                               "py-locals",
01665                               gdb.COMMAND_DATA,
01666                               gdb.COMPLETE_NONE)
01667 

Here is the caller graph for this function:


Member Function Documentation

def libpython.PyLocals.invoke (   self,
  args,
  from_tty 
)

Definition at line 1668 of file libpython.py.

01668 
01669     def invoke(self, args, from_tty):
01670         name = str(args)
01671 
01672         frame = Frame.get_selected_python_frame()
01673         if not frame:
01674             print 'Unable to locate python frame'
01675             return
01676 
01677         pyop_frame = frame.get_pyop()
01678         if not pyop_frame:
01679             print 'Unable to read information on python frame'
01680             return
01681 
01682         for pyop_name, pyop_value in pyop_frame.iter_locals():
01683             print ('%s = %s'
01684                    % (pyop_name.proxyval(set()),
01685                       pyop_value.get_truncated_repr(MAX_OUTPUT_LEN)))
01686 
01687 PyLocals()

Here is the call graph for this function:


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