Struct lldb::SBFrame [] [src]

pub struct SBFrame {
    pub raw: SBFrameRef,
}

One of the stack frames associated with a thread.

Fields

The underlying raw SBFrameRef.

Methods

impl SBFrame
[src]

[src]

Construct a new SBFrame.

[src]

Construct a new Some(SBFrame) or None.

[src]

Check whether or not this is a valid SBFrame value.

[src]

The zero-based stack frame index for this frame.

This can be used to locate adjacent frames in the thread's stack frames.

[src]

Get the Canonical Frame Address for this stack frame.

This is the DWARF standard's definition of a CFA, a stack address that remains constant throughout the lifetime of the function.

[src]

The program counter (PC) as an unsigned integer.

[src]

[src]

The stack pointer address as an unsigned integer.

[src]

The frame pointer address as an unsigned integer.

[src]

The program counter (PC) as a section offset address (SBAddress).

[src]

The symbol context for this frame's current pc value.

The frame maintains this symbol context and adds information to it as needed. This helps avoid repeated lookups of the same information.

  • resolve_scope: Flags that specify what type of symbol context is needed by the caller. These flags have constants starting with SYMBOL_CONTEXT_ITEM_.

[src]

The SBModule for this stack frame.

[src]

The SBCompileUnit for this stack frame.

[src]

The SBFunction for this stack frame.

[src]

The SBSymbol for this stack frame.

[src]

Get the deepest block that contains the frame PC.

[src]

Get the appropriate function name for this frame. Inlined functions in LLDB are represented by blocks that have inlined function information, so just looking at the SBFunction or SBSymbol for a frame isn't enough. This function will return the appropriate function, symbol or inlined function name for the frame.

This function returns:

  • the name of the inlined function (if there is one)
  • the name of the concrete function (if there is one)
  • the name of the symbol (if there is one)
  • NULL

See also is_inlined.

[src]

[src]

Return true if this frame represents an inlined function.

[src]

Evaluate an expression within the context of this frame.

[src]

Gets the lexical block that defines the stack frame. Another way to think of this is it will return the block that contains all of the variables for a stack frame. Inlined functions are represented as SBBlock objects that have inlined function information: the name of the inlined function, where it was called from. The block that is returned will be the first block at or above the block for the PC (SBFrame::block()) that defines the scope of the frame. When a function contains no inlined functions, this will be the top most lexical block that defines the function. When a function has inlined functions and the PC is currently in one of those inlined functions, this method will return the inlined block that defines this frame. If the PC isn't currently in an inlined function, the lexical block that defines the function is returned.

[src]

The line table entry (SBLineEntry) for this stack frame.

[src]

The thread that is executing this stack frame.

[src]

The disassembly of this function, presented as a string.

[src]

The values for variables matching the specified options.

[src]

The values for all variables in this stack frame.

[src]

The values for the argument variables in this stack frame.

[src]

The values for the local variables in this stack frame.

[src]

The values for the static variables in this stack frame.

[src]

The values for the CPU registers for this stack frame.

[src]

The value for a particular register, if present.

[src]

The parent frame that invoked this frame, if available.

Trait Implementations

impl Debug for SBFrame
[src]

[src]

Formats the value using the given formatter.

impl Drop for SBFrame
[src]

[src]

Executes the destructor for this type. Read more