LLDB Python API#
lldb Package#
The lldb module contains the public APIs for Python binding.
Some of the important classes are described here:
SBTarget
: Represents the target program running under the debugger.SBProcess
: Represents the process associated with the target program.SBThread
: Represents a thread of execution.SBProcess
contains SBThreads.SBFrame
: Represents one of the stack frames associated with a thread.SBThread
contains SBFrame(s).SBSymbolContext
: A container that stores various debugger related info.SBValue
: Represents the value of a variable, a register, or an expression.SBModule
: Represents an executable image and its associated object and symbol files.SBTarget
contains SBModule.SBBreakpoint
: Represents a logical breakpoint and its associated settings.SBTarget
contains SBBreakpoints.SBSymbol
: Represents the symbol possibly associated with a stack frame.SBCompileUnit
: Represents a compilation unit, or compiled source file.SBFunction
: Represents a generic function, which can be inlined or not.SBBlock
: Represents a lexical block.SBFunction
contains SBBlocks.SBLineEntry
: Specifies an association with a contiguous range of instructions and a source file location.SBCompileUnit
contains SBLineEntry.
The different enums in the lldb
module are described in Python API enumerators and constants.
Classes#
|
A section + offset based address class. |
|
Describes how to attach when calling |
|
Represents a lexical block. |
|
Represents a logical breakpoint and its associated settings. |
|
Represents a list of |
|
Represents one unique instance (by address) of a logical breakpoint. |
|
Represents a breakpoint name registered in a given |
|
Represents an entity which can broadcast events. |
|
SBCommandInterpreter handles/interprets commands for lldb. |
SBCommandInterpreterRunOptions controls how the RunCommandInterpreter runs the code it is fed. |
|
|
Represents a container which holds the result from command execution. |
|
Allows sending/receiving data. |
|
Represents a compilation unit, or compiled source file. |
|
Represents a data buffer. |
|
SBDebugger is the primordial object that creates SBTargets and provides access to them. |
|
Specifies an association with a line and column for a variable. |
|
Represents the environment of a certain process. |
|
Represents a container for holding any error code. |
|
API clients can register to receive events. |
|
Describes the program context in which a command should be executed. |
|
A container for options to use when evaluating expressions. |
|
Represents a file. |
|
Represents a file specification that divides the path into a directory and basename. |
|
Represents a list of |
|
Represents one of the stack frames associated with a thread. |
|
Represents a generic function, which can be inlined or not. |
|
Provides information about the host system. |
|
Represents a (machine language) instruction. |
|
Represents a list of machine instructions. |
Utility functions for LanguageType |
|
|
Describes how a target or program should be launched. |
|
Specifies an association with a contiguous range of instructions and a source file location. |
|
API clients can register its own listener to debugger events. |
|
API clients can get information about memory regions in processes. |
|
Represents a list of |
|
Represents an executable image and its associated object and symbol files. |
|
Proxy of C++ lldb::SBModuleSpec class. |
|
Represents a list of |
|
A class that represents a platform that can represent the current host or a remote host debug platform. |
|
Describes how |
|
Represents a shell command that can be run by |
|
Represents the process associated with the target program. |
|
Describes an existing process and any discoverable information that pertains to that process. |
|
Represents a libdispatch queue in the process. |
This class represents an item in an |
|
Controls LLDB's reproducer functionality. |
|
|
Proxy of C++ lldb::SBScriptObject class. |
|
Represents an executable image section. |
|
Represents a central authority for displaying source code. |
|
Represents a destination for streaming data output to. |
|
Represents a list of strings. |
|
A class representing a StructuredData event. |
|
Represents the symbol possibly associated with a stack frame. |
|
A context object that provides access to core debugger entities. |
|
Represents a list of symbol context object. |
|
|
|
Represents the target program running under the debugger. |
|
Represents a thread of execution. |
|
Represents a collection of SBThread objects. |
|
Represents a plan for the execution control of a given thread. |
|
Represents a processor trace. |
Represents a trace cursor. |
|
|
Represents a data type in lldb. |
|
Represents a category that can contain formatters for types. |
|
Represents a member of an enum in lldb. |
|
Represents a list of SBTypeEnumMembers. |
|
Represents a filter that can be associated to one or more types. |
|
Represents a format that can be associated to one or more types. |
|
Represents a list of |
|
Represents a member of a type. |
|
Represents a member function of a type. |
|
Represents a general way to provide a type name to LLDB APIs. |
|
Represents a summary that can be associated to one or more types. |
|
Proxy of C++ lldb::SBTypeSummaryOptions class. |
|
Represents a summary that can be associated to one or more types. |
|
Allows you to manipulate LLDB's signal disposition |
|
Represents the value of a variable, a register, or an expression. |
|
Represents a collection of SBValues. |
|
Describes which variables should be returned from |
|
Represents an instance of watchpoint for a specific target program. |
|
A class that represents a source declaration location with file, line and column. |
|
Wraps |
|
Allows iterating over the children of an |