SBFrameList#

class lldb.SBFrameList(*args)#

Represents a list of SBFrame objects.

SBFrameList provides a way to iterate over stack frames lazily, materializing frames on-demand as they are accessed. This is more efficient than eagerly creating all frames upfront.

Methods Summary

Clear()

Clear all frames from this list.

GetDescription(description)

Get a description of this frame list.

GetFrameAtIndex(idx)

Returns the frame at the given index.

GetSize()

Returns the number of frames in the list.

GetThread()

Get the thread associated with this frame list.

IsValid(SBFrameList self)

Methods Documentation

Clear()#

Clear all frames from this list.

GetDescription(description)#

Get a description of this frame list.

Parameters:

description (SBStream, in) – The stream to write the description to.

Return type:

boolean

Returns:

True if the description was successfully written.

GetFrameAtIndex(idx)#

Returns the frame at the given index.

Parameters:

idx (int, in) – The index of the frame to retrieve (0-based).

Return type:

SBFrame

Returns:

An SBFrame object for the frame at the specified index. Returns an invalid SBFrame if idx is out of range.

GetSize()#

Returns the number of frames in the list.

GetThread()#

Get the thread associated with this frame list.

Return type:

SBThread

Returns:

An SBThread object representing the thread.

IsValid(SBFrameList self) bool#