Package lldb :: Class SBValueList
[hide private]
[frames] | no frames]

Class SBValueList

source code



Represents a collection of SBValues.  Both SBFrame's GetVariables() and
GetRegisters() return a SBValueList.

SBValueList supports SBValue iteration. For example (from test/lldbutil.py),

def get_registers(frame, kind):
    '''Returns the registers given the frame and the kind of registers desired.

    Returns None if there's no such kind.
    '''
    registerSet = frame.GetRegisters() # Return type of SBValueList.
    for value in registerSet:
        if kind.lower() in value.GetName().lower():
            return value

    return None

def get_GPRs(frame):
    '''Returns the general purpose registers of the frame as an SBValue.

    The returned SBValue object is iterable.  An example:
        ...
        from lldbutil import get_GPRs
        regs = get_GPRs(frame)
        for reg in regs:
            print('%s => %s' % (reg.GetName(), reg.GetValue()))
        ...
    '''
    return get_registers(frame, 'general purpose')

def get_FPRs(frame):
    '''Returns the floating point registers of the frame as an SBValue.

    The returned SBValue object is iterable.  An example:
        ...
        from lldbutil import get_FPRs
        regs = get_FPRs(frame)
        for reg in regs:
            print('%s => %s' % (reg.GetName(), reg.GetValue()))
        ...
    '''
    return get_registers(frame, 'floating point')

def get_ESRs(frame):
    '''Returns the exception state registers of the frame as an SBValue.

    The returned SBValue object is iterable.  An example:
        ...
        from lldbutil import get_ESRs
        regs = get_ESRs(frame)
        for reg in regs:
            print('%s => %s' % (reg.GetName(), reg.GetValue()))
        ...
    '''
    return get_registers(frame, 'exception state')

Instance Methods [hide private]
 
__repr__(self) source code
 
__init__(self, *args)
__init__(lldb::SBValueList self) -> SBValueList __init__(lldb::SBValueList self, SBValueList rhs) -> SBValueList
source code
 
IsValid(self)
IsValid(SBValueList self) -> bool
source code
 
__nonzero__(self) source code
 
__bool__(self) source code
 
Clear(self)
Clear(SBValueList self)
source code
 
Append(self, *args)
Append(SBValueList self, SBValue val_obj) Append(SBValueList self, SBValueList value_list)
source code
 
GetSize(self)
GetSize(SBValueList self) -> uint32_t
source code
 
GetValueAtIndex(self, *args)
GetValueAtIndex(SBValueList self, uint32_t idx) -> SBValue
source code
 
FindValueObjectByUID(self, *args)
FindValueObjectByUID(SBValueList self, lldb::user_id_t uid) -> SBValue
source code
 
GetFirstValueByName(self, *args)
GetFirstValueByName(SBValueList self, char const * name) -> SBValue
source code
 
__iter__(self)
Iterate over all values in a lldb.SBValueList object.
source code
 
__len__(self) source code
 
__getitem__(self, key) source code
 
__str__(self)
__str__(SBValueList self) -> PyObject *
source code
Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _lldb.delete_SBValueList
  __del__ = lambda self: