SBBlock#

class lldb.SBBlock(*args)#

Represents a lexical block. SBFunction contains SBBlock(s).

Attributes Summary

call_site

A read only property that returns a lldb.declaration object that contains the inlined call site file, line and column.

first_child

A read only property that returns the same result as GetFirstChild().

inlined_block

A read only property that returns the same result as GetContainingInlinedBlock().

name

A read only property that returns the same result as GetInlinedName().

num_ranges

A read only property that returns the same result as GetNumRanges().

parent

A read only property that returns the same result as GetParent().

range

A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAddress (find the range that contains the specified lldb.SBAddress like "pc_range = lldb.frame.block.range[frame.addr]").

ranges

A read only property that returns a list() object that contains all of the address ranges for the block.

sibling

A read only property that returns the same result as GetSibling().

Methods Summary

GetContainingInlinedBlock(SBBlock self)

Get the inlined block that is or contains this block.

GetDescription(SBBlock self, ...)

GetFirstChild(SBBlock self)

Get the first child block.

GetInlinedCallSiteColumn(SBBlock self)

Get the call site column if this block represents an inlined function; otherwise, return 0.

GetInlinedCallSiteFile(SBBlock self)

Get the call site file if this block represents an inlined function; otherwise, return an invalid file spec.

GetInlinedCallSiteLine(SBBlock self)

Get the call site line if this block represents an inlined function; otherwise, return 0.

GetInlinedName(SBBlock self)

Get the function name if this block represents an inlined function; otherwise, return None.

GetNumRanges(SBBlock self)

GetParent(SBBlock self)

Get the parent block.

GetRangeEndAddress(SBBlock self, uint32_t idx)

GetRangeIndexForBlockAddress(SBBlock self, ...)

GetRangeStartAddress(SBBlock self, uint32_t idx)

GetRanges(SBBlock self)

GetSibling(SBBlock self)

Get the sibling block for this block.

GetVariables(-> SBValueList)

IsInlined(SBBlock self)

Is this block contained within an inlined function?

IsValid(SBBlock self)

get_call_site()

get_range_at_index(idx)

get_ranges_access_object()

An accessor function that returns a ranges_access() object which allows lazy block address ranges access.

get_ranges_array()

An accessor function that returns an array object that contains all ranges in this block object.

Attributes Documentation

call_site#

A read only property that returns a lldb.declaration object that contains the inlined call site file, line and column.

first_child#

A read only property that returns the same result as GetFirstChild().

inlined_block#

A read only property that returns the same result as GetContainingInlinedBlock().

name#

A read only property that returns the same result as GetInlinedName().

num_ranges#

A read only property that returns the same result as GetNumRanges().

parent#

A read only property that returns the same result as GetParent().

range#

A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAddress (find the range that contains the specified lldb.SBAddress like “pc_range = lldb.frame.block.range[frame.addr]”).

ranges#

A read only property that returns a list() object that contains all of the address ranges for the block.

sibling#

A read only property that returns the same result as GetSibling().

Methods Documentation

GetContainingInlinedBlock(SBBlock self) SBBlock#

Get the inlined block that is or contains this block.

GetDescription(SBBlock self, SBStream description) bool#
GetFirstChild(SBBlock self) SBBlock#

Get the first child block.

GetInlinedCallSiteColumn(SBBlock self) uint32_t#

Get the call site column if this block represents an inlined function; otherwise, return 0.

GetInlinedCallSiteFile(SBBlock self) SBFileSpec#

Get the call site file if this block represents an inlined function; otherwise, return an invalid file spec.

GetInlinedCallSiteLine(SBBlock self) uint32_t#

Get the call site line if this block represents an inlined function; otherwise, return 0.

GetInlinedName(SBBlock self) char const *#

Get the function name if this block represents an inlined function; otherwise, return None.

GetNumRanges(SBBlock self) uint32_t#
GetParent(SBBlock self) SBBlock#

Get the parent block.

GetRangeEndAddress(SBBlock self, uint32_t idx) SBAddress#
GetRangeIndexForBlockAddress(SBBlock self, SBAddress block_addr) uint32_t#
GetRangeStartAddress(SBBlock self, uint32_t idx) SBAddress#
GetRanges(SBBlock self) SBAddressRangeList#
GetSibling(SBBlock self) SBBlock#

Get the sibling block for this block.

GetVariables(SBBlock self, SBFrame frame, bool arguments, bool locals, bool statics, lldb::DynamicValueType use_dynamic) SBValueList#
GetVariables(SBBlock self, SBTarget target, bool arguments, bool locals, bool statics) SBValueList
IsInlined(SBBlock self) bool#

Is this block contained within an inlined function?

IsValid(SBBlock self) bool#
get_call_site()#
get_range_at_index(idx)#
get_ranges_access_object()#

An accessor function that returns a ranges_access() object which allows lazy block address ranges access.

get_ranges_array()#

An accessor function that returns an array object that contains all ranges in this block object.