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]
 
__setattr__(self, name, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__getattr__(self, name) source code
 
__repr__(self)
repr(x)
source code
 
__iter__(self) source code
 
__init__(self, *args)
__init__(lldb::SBValueList self) -> SBValueList __init__(lldb::SBValueList self, SBValueList rhs) -> SBValueList
source code
 
__swig_destroy__(...)
delete_SBValueList(SBValueList self)
 
__del__(self) source code
 
__nonzero__(self) source code
 
IsValid(self)
IsValid(SBValueList self) -> bool
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
 
__len__(self) source code
 
__getitem__(self, key) source code
 
__str__(self)
__str__(SBValueList self) -> PyObject *
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __swig_setmethods__ = {}
  __swig_getmethods__ = {}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__setattr__(self, name, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__init__(self, *args)
(Constructor)

source code 

__init__(lldb::SBValueList self) -> SBValueList __init__(lldb::SBValueList self, SBValueList rhs) -> SBValueList

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

__str__(SBValueList self) -> PyObject *

Overrides: object.__str__