LLDB mainline
|
#include <SBDebugger.h>
Static Public Member Functions | |
static const char * | GetBroadcasterClass () |
static bool | SupportsLanguage (lldb::LanguageType language) |
static const char * | GetProgressFromEvent (const lldb::SBEvent &event, uint64_t &progress_id, uint64_t &completed, uint64_t &total, bool &is_debugger_specific) |
Get progress data from a SBEvent whose type is eBroadcastBitProgress. | |
static lldb::SBStructuredData | GetProgressDataFromEvent (const lldb::SBEvent &event) |
static lldb::SBStructuredData | GetDiagnosticFromEvent (const lldb::SBEvent &event) |
static void | Initialize () |
static lldb::SBError | InitializeWithErrorHandling () |
static void | PrintStackTraceOnError () |
static void | PrintDiagnosticsOnError () |
static void | Terminate () |
static lldb::SBDebugger | Create () |
static lldb::SBDebugger | Create (bool source_init_files) |
static lldb::SBDebugger | Create (bool source_init_files, lldb::LogOutputCallback log_callback, void *baton) |
static void | Destroy (lldb::SBDebugger &debugger) |
static void | MemoryPressureDetected () |
static bool | GetDefaultArchitecture (char *arch_name, size_t arch_name_len) |
static bool | SetDefaultArchitecture (const char *arch_name) |
static const char * | GetVersionString () |
static const char * | StateAsCString (lldb::StateType state) |
static SBStructuredData | GetBuildConfiguration () |
static bool | StateIsRunningState (lldb::StateType state) |
static bool | StateIsStoppedState (lldb::StateType state) |
static SBDebugger | FindDebuggerWithID (int id) |
static lldb::SBError | SetInternalVariable (const char *var_name, const char *value, const char *debugger_instance_name) |
static lldb::SBStringList | GetInternalVariableValue (const char *var_name, const char *debugger_instance_name) |
Public Attributes | |
LLDB_DEPRECATED_FIXME("Use HandleProcessEvent(const SBProcess &, const SBEvent &, SBFile, " "SBFile) or HandleProcessEvent(const SBProcess &, const SBEvent &, " "FileSP, FileSP)", "HandleProcessEvent(const SBProcess &, const SBEvent &, SBFile, SBFile)") void HandleProcessEvent(const lldb void | HandleProcessEvent (const lldb::SBProcess &process, const lldb::SBEvent &event, SBFile out, SBFile err) |
const void * | data |
const void size_t | data_len |
Protected Member Functions | |
SBDebugger (const lldb::DebuggerSP &debugger_sp) | |
Private Member Functions | |
lldb::SBTarget | FindTargetWithLLDBProcess (const lldb::ProcessSP &processSP) |
void | reset (const lldb::DebuggerSP &debugger_sp) |
lldb_private::Debugger * | get () const |
lldb_private::Debugger & | ref () const |
const lldb::DebuggerSP & | get_sp () const |
Private Attributes | |
lldb::DebuggerSP | m_opaque_sp |
Friends | |
class | lldb_private::CommandPluginInterfaceImplementation |
class | lldb_private::python::SWIGBridge |
class | SBCommandInterpreter |
class | SBInputReader |
class | SBListener |
class | SBProcess |
class | SBSourceManager |
class | SBStructuredData |
class | SBPlatform |
class | SBTarget |
class | SBTrace |
Definition at line 43 of file SBDebugger.h.
SBDebugger::SBDebugger | ( | ) |
Definition at line 91 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
SBDebugger::SBDebugger | ( | const lldb::SBDebugger & | rhs | ) |
Definition at line 98 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
|
default |
|
protected |
Definition at line 93 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
lldb::callback_token_t SBDebugger::AddDestroyCallback | ( | lldb::SBDebuggerDestroyCallback | destroy_callback, |
void * | baton | ||
) |
Clear all previously added callbacks and only add the given one.
Add a callback for when the debugger is destroyed. Return a token, which can be used to remove said callback. Multiple callbacks can be added by calling this function multiple times, and will be invoked in FIFO order.
Definition at line 1732 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, LLDB_INVALID_CALLBACK_TOKEN, and m_opaque_sp.
void SBDebugger::CancelInterruptRequest | ( | ) |
Definition at line 1764 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::Clear | ( | ) |
Definition at line 254 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
static |
Definition at line 263 of file SBDebugger.cpp.
References Create(), and LLDB_INSTRUMENT.
Referenced by Create().
|
static |
Definition at line 269 of file SBDebugger.cpp.
References Create(), and LLDB_INSTRUMENT_VA.
|
static |
Definition at line 275 of file SBDebugger.cpp.
References lldb_private::Debugger::CreateInstance(), lldb::SBCommandInterpreter::get(), GetCommandInterpreter(), LLDB_INSTRUMENT_VA, reset(), lldb_private::CommandInterpreter::SkipAppInitFiles(), lldb_private::CommandInterpreter::SkipLLDBInitFiles(), lldb::SBCommandInterpreter::SourceInitFileInGlobalDirectory(), and lldb::SBCommandInterpreter::SourceInitFileInHomeDirectory().
SBTypeCategory SBDebugger::CreateCategory | ( | const char * | category_name | ) |
Definition at line 1605 of file SBDebugger.cpp.
References lldb_private::DataVisualization::Categories::GetCategory(), and LLDB_INSTRUMENT_VA.
SBTarget SBDebugger::CreateTarget | ( | const char * | filename | ) |
Definition at line 938 of file SBDebugger.cpp.
References lldb_private::eLoadDependentsNo, lldb_private::eLoadDependentsYes, error(), lldb_private::GetLog(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, and lldb::SBTarget::SetSP().
lldb::SBTarget SBDebugger::CreateTarget | ( | const char * | filename, |
const char * | target_triple, | ||
const char * | platform_name, | ||
bool | add_dependent_modules, | ||
lldb::SBError & | error | ||
) |
Definition at line 829 of file SBDebugger.cpp.
References lldb::SBError::Clear(), lldb_private::eLoadDependentsNo, lldb_private::eLoadDependentsYes, lldb_private::Status::FromErrorString(), lldb::SBError::GetCString(), lldb_private::GetLog(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, lldb::SBError::ref(), lldb_private::OptionGroupPlatform::SetPlatformName(), lldb::SBTarget::SetSP(), and lldb::SBError::Success().
SBTarget SBDebugger::CreateTargetWithFileAndArch | ( | const char * | filename, |
const char * | archname | ||
) |
Definition at line 893 of file SBDebugger.cpp.
References lldb_private::eLoadDependentsYes, error(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::Platform::GetAugmentedArchSpec(), lldb_private::GetLog(), lldb_private::ArchSpec::IsValid(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, and lldb::SBTarget::SetSP().
SBTarget SBDebugger::CreateTargetWithFileAndTargetTriple | ( | const char * | filename, |
const char * | target_triple | ||
) |
Definition at line 868 of file SBDebugger.cpp.
References lldb_private::eLoadDependentsNo, lldb_private::eLoadDependentsYes, error(), lldb_private::GetLog(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, and lldb::SBTarget::SetSP().
bool SBDebugger::DeleteCategory | ( | const char * | category_name | ) |
Definition at line 1621 of file SBDebugger.cpp.
References lldb_private::DataVisualization::Categories::Delete(), and LLDB_INSTRUMENT_VA.
bool SBDebugger::DeleteTarget | ( | lldb::SBTarget & | target | ) |
Definition at line 976 of file SBDebugger.cpp.
References lldb::SBTarget::Clear(), lldb_private::GetLog(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, and lldb::SBTarget::m_opaque_sp.
|
static |
Definition at line 307 of file SBDebugger.cpp.
References lldb_private::Debugger::Destroy(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::DispatchInput | ( | const void * | data, |
size_t | data_len | ||
) |
Definition at line 1210 of file SBDebugger.cpp.
References data, data_len, DispatchInput(), and LLDB_INSTRUMENT_VA.
Referenced by DispatchInput().
void SBDebugger::DispatchInputEndOfFile | ( | ) |
Definition at line 1240 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::DispatchInputInterrupt | ( | ) |
Definition at line 1233 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBDebugger::EnableLog | ( | const char * | channel, |
const char ** | categories | ||
) |
Definition at line 1698 of file SBDebugger.cpp.
References lldb_private::eLogHandlerStream, error(), GetCategoryArray(), LLDB_INSTRUMENT_VA, LLDB_LOG_OPTION_PREPEND_THREAD_NAME, LLDB_LOG_OPTION_PREPEND_TIMESTAMP, and m_opaque_sp.
|
static |
Definition at line 1326 of file SBDebugger.cpp.
References lldb_private::Debugger::FindDebuggerWithID(), LLDB_INSTRUMENT_VA, and reset().
SBTarget SBDebugger::FindTargetWithFileAndArch | ( | const char * | filename, |
const char * | arch | ||
) |
Definition at line 1033 of file SBDebugger.cpp.
References lldb_private::Platform::GetAugmentedArchSpec(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBTarget::SetSP().
|
private |
Definition at line 1050 of file SBDebugger.cpp.
References m_opaque_sp, and lldb::SBTarget::SetSP().
SBTarget SBDebugger::FindTargetWithProcessID | ( | lldb::pid_t | pid | ) |
Definition at line 1022 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBTarget::SetSP().
|
inline |
Definition at line 45 of file SBDebugger.h.
References lldb::eBroadcastBitError, lldb::eBroadcastBitProgress, lldb::eBroadcastBitProgressCategory, and lldb::eBroadcastBitWarning.
|
private |
Definition at line 1317 of file SBDebugger.cpp.
References m_opaque_sp.
Referenced by lldb::SBListener::StartListeningForEventClass(), and lldb::SBListener::StopListeningForEventClass().
|
private |
Definition at line 1324 of file SBDebugger.cpp.
References m_opaque_sp.
Referenced by lldb::SBSourceManager::SBSourceManager().
bool SBDebugger::GetAsync | ( | ) |
Definition at line 346 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
SBStructuredData SBDebugger::GetAvailablePlatformInfoAtIndex | ( | uint32_t | idx | ) |
Get the name and description of one of the available platforms.
[in] | idx | Zero-based index of the platform for which info should be retrieved, must be less than the value returned by GetNumAvailablePlatforms(). |
Definition at line 1180 of file SBDebugger.cpp.
References data, lldb_private::Platform::GetHostPlatform(), lldb_private::PluginManager::GetPlatformPluginDescriptionAtIndex(), lldb_private::PluginManager::GetPlatformPluginNameAtIndex(), and LLDB_INSTRUMENT_VA.
SBBroadcaster SBDebugger::GetBroadcaster | ( | ) |
Definition at line 168 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
static |
Definition at line 113 of file SBDebugger.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::Debugger::GetStaticBroadcasterClass(), and LLDB_INSTRUMENT.
|
static |
Definition at line 775 of file SBDebugger.cpp.
References AddBoolConfigEntry(), AddLLVMTargets(), data, LLDB_INSTRUMENT, and lldb_private::XMLDocument::XMLEnabled().
SBTypeCategory SBDebugger::GetCategory | ( | const char * | category_name | ) |
Definition at line 1578 of file SBDebugger.cpp.
References lldb_private::DataVisualization::Categories::GetCategory(), and LLDB_INSTRUMENT_VA.
Referenced by GetDefaultCategory().
SBTypeCategory SBDebugger::GetCategory | ( | lldb::LanguageType | lang_type | ) |
Definition at line 1594 of file SBDebugger.cpp.
References lldb_private::DataVisualization::Categories::GetCategory(), and LLDB_INSTRUMENT_VA.
SBTypeCategory SBDebugger::GetCategoryAtIndex | ( | uint32_t | index | ) |
Definition at line 1636 of file SBDebugger.cpp.
References lldb_private::DataVisualization::Categories::GetCategoryAtIndex(), and LLDB_INSTRUMENT_VA.
bool SBDebugger::GetCloseInputOnEOF | ( | ) | const |
Definition at line 1568 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
SBCommandInterpreter SBDebugger::GetCommandInterpreter | ( | ) |
Definition at line 560 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBCommandInterpreter::reset().
Referenced by Create(), and HandleCommand().
|
static |
Definition at line 685 of file SBDebugger.cpp.
References lldb_private::ArchSpec::GetArchitectureName(), lldb_private::Target::GetDefaultArchitecture(), lldb_private::ArchSpec::GetTriple(), lldb_private::ArchSpec::IsValid(), and LLDB_INSTRUMENT_VA.
SBTypeCategory SBDebugger::GetDefaultCategory | ( | ) |
Definition at line 1643 of file SBDebugger.cpp.
References GetCategory(), and LLDB_INSTRUMENT_VA.
Referenced by GetFormatForType().
bool SBDebugger::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 1517 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::Stream::Printf(), lldb_private::Stream::PutCString(), and lldb::SBStream::ref().
|
static |
Definition at line 154 of file SBDebugger.cpp.
References data, lldb::SBEvent::get(), lldb_private::DiagnosticEventData::GetAsStructuredData(), and LLDB_INSTRUMENT_VA.
SBTarget SBDebugger::GetDummyTarget | ( | ) |
Definition at line 962 of file SBDebugger.cpp.
References lldb_private::GetLog(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, and lldb::SBTarget::SetSP().
SBFile SBDebugger::GetErrorFile | ( | ) |
Definition at line 537 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by HandleCommand().
FILE * SBDebugger::GetErrorFileHandle | ( | ) |
Definition at line 527 of file SBDebugger.cpp.
References lldb_private::StreamFile::GetFile(), lldb_private::File::GetStream(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
SBTypeFilter SBDebugger::GetFilterForType | ( | SBTypeNameSpecifier | type_name | ) |
Definition at line 1666 of file SBDebugger.cpp.
References lldb_private::DataVisualization::GetFilterForType(), lldb::SBTypeNameSpecifier::GetSP(), lldb::SBTypeNameSpecifier::IsValid(), and LLDB_INSTRUMENT_VA.
SBTypeFormat SBDebugger::GetFormatForType | ( | SBTypeNameSpecifier | type_name | ) |
Definition at line 1649 of file SBDebugger.cpp.
References GetDefaultCategory(), lldb::SBTypeCategory::GetEnabled(), lldb::SBTypeCategory::GetFormatForType(), and LLDB_INSTRUMENT_VA.
user_id_t SBDebugger::GetID | ( | ) |
Definition at line 1532 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, LLDB_INVALID_UID, and m_opaque_sp.
uint32_t SBDebugger::GetIndexOfTarget | ( | lldb::SBTarget | target | ) |
Definition at line 1009 of file SBDebugger.cpp.
References lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, m_opaque_sp, and UINT32_MAX.
SBFile SBDebugger::GetInputFile | ( | ) |
Definition at line 501 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
FILE * SBDebugger::GetInputFileHandle | ( | ) |
Definition at line 492 of file SBDebugger.cpp.
References lldb_private::File::GetStream(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
const char * SBDebugger::GetInstanceName | ( | ) |
Definition at line 1337 of file SBDebugger.cpp.
References lldb_private::ConstString::AsCString(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
static |
Definition at line 1369 of file SBDebugger.cpp.
References lldb_private::OptionValue::eDumpOptionValue, error(), lldb_private::Debugger::FindDebuggerWithInstanceName(), lldb_private::StreamString::GetString(), LLDB_INSTRUMENT_VA, and lldb_private::StringList::SplitIntoLines().
SBListener SBDebugger::GetListener | ( | ) |
Definition at line 603 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBListener::reset().
uint32_t SBDebugger::GetNumAvailablePlatforms | ( | ) |
Get the number of available platforms.
The return value should match the number of entries output by the "platform list" command.
Definition at line 1166 of file SBDebugger.cpp.
References lldb_private::PluginManager::GetPlatformPluginNameAtIndex(), and LLDB_INSTRUMENT_VA.
uint32_t SBDebugger::GetNumCategories | ( | ) |
Definition at line 1630 of file SBDebugger.cpp.
References lldb_private::DataVisualization::Categories::GetCount(), and LLDB_INSTRUMENT_VA.
uint32_t SBDebugger::GetNumPlatforms | ( | ) |
Get the number of currently active platforms.
Definition at line 1145 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
uint32_t SBDebugger::GetNumTargets | ( | ) |
Definition at line 1060 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
SBFile SBDebugger::GetOutputFile | ( | ) |
Definition at line 518 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by HandleCommand().
FILE * SBDebugger::GetOutputFileHandle | ( | ) |
Definition at line 509 of file SBDebugger.cpp.
References lldb_private::StreamFile::GetFile(), lldb_private::File::GetStream(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
SBPlatform SBDebugger::GetPlatformAtIndex | ( | uint32_t | idx | ) |
Get one of the currently active platforms.
Definition at line 1155 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBPlatform::SetSP().
|
static |
Definition at line 139 of file SBDebugger.cpp.
References data, lldb::SBEvent::get(), lldb_private::ProgressEventData::GetAsStructuredData(), and LLDB_INSTRUMENT_VA.
|
static |
Get progress data from a SBEvent whose type is eBroadcastBitProgress.
[in] | event | The event to extract the progress information from. |
[out] | progress_id | The unique integer identifier for the progress to report. |
[out] | completed | The amount of work completed. If completed is zero, then this event is a progress started event. If completed is equal to total, then this event is a progress end event. Otherwise completed indicates the current progress update. |
[out] | total | The total amount of work units that need to be completed. If this value is UINT64_MAX, then an indeterminate progress indicator should be displayed. |
[out] | is_debugger_specific | Set to true if this progress is specific to this debugger only. Many progress events are not specific to a debugger instance, like any progress events for loading information in modules since LLDB has a global module cache that all debuggers use. |
Definition at line 119 of file SBDebugger.cpp.
References lldb_private::ConstString::AsCString(), lldb::SBEvent::get(), lldb_private::ProgressEventData::GetCompleted(), lldb_private::ProgressEventData::GetEventDataFromEvent(), lldb_private::ProgressEventData::GetID(), lldb_private::ProgressEventData::GetMessage(), lldb_private::ProgressEventData::GetTotal(), lldb_private::ProgressEventData::IsDebuggerSpecific(), and LLDB_INSTRUMENT_VA.
const char * SBDebugger::GetPrompt | ( | ) | const |
Definition at line 1421 of file SBDebugger.cpp.
References lldb_private::ConstString::GetCString(), lldb_private::GetLog(), LLDB_INSTRUMENT_VA, LLDB_LOG, and m_opaque_sp.
LanguageType SBDebugger::GetREPLLanguage | ( | ) | const |
Definition at line 1461 of file SBDebugger.cpp.
References lldb::eLanguageTypeUnknown, LLDB_INSTRUMENT_VA, and m_opaque_sp.
const char * SBDebugger::GetReproducerPath | ( | ) | const |
Definition at line 1441 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
ScriptLanguage SBDebugger::GetScriptingLanguage | ( | const char * | script_language_name | ) |
Definition at line 720 of file SBDebugger.cpp.
References lldb::eScriptLanguageDefault, LLDB_INSTRUMENT_VA, and lldb_private::OptionArgParser::ToScriptLanguage().
SBStructuredData SBDebugger::GetScriptInterpreterInfo | ( | lldb::ScriptLanguage | language | ) |
Definition at line 730 of file SBDebugger.cpp.
References data, lldb_private::ScriptInterpreter::GetInterpreterInfo(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
ScriptLanguage SBDebugger::GetScriptLanguage | ( | ) | const |
Definition at line 1447 of file SBDebugger.cpp.
References lldb::eScriptLanguageNone, LLDB_INSTRUMENT_VA, and m_opaque_sp.
SBPlatform SBDebugger::GetSelectedPlatform | ( | ) |
Definition at line 1112 of file SBDebugger.cpp.
References lldb_private::GetLog(), lldb::SBPlatform::GetName(), lldb::SBPlatform::GetSP(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, and lldb::SBPlatform::SetSP().
Referenced by SetCurrentPlatformSDKRoot().
SBTarget SBDebugger::GetSelectedTarget | ( | ) |
Definition at line 1070 of file SBDebugger.cpp.
References lldb::eDescriptionLevelBrief, lldb::SBStream::GetData(), lldb::SBTarget::GetDescription(), lldb_private::GetLog(), LLDB_INSTRUMENT_VA, LLDB_LOGF, m_opaque_sp, and lldb::SBTarget::SetSP().
lldb::SBStructuredData SBDebugger::GetSetting | ( | const char * | setting = nullptr | ) |
Getting a specific setting value into SBStructuredData format.
Client can specify empty string or null to get all settings.
Example usages: lldb::SBStructuredData settings = debugger.GetSetting(); lldb::SBStructuredData settings = debugger.GetSetting(nullptr); lldb::SBStructuredData settings = debugger.GetSetting(""); lldb::SBStructuredData settings = debugger.GetSetting("target.arg0"); lldb::SBStructuredData settings = debugger.GetSetting("target");
[out] | setting | Property setting path to retrieve values. e.g "target.source-map" |
Definition at line 470 of file SBDebugger.cpp.
References data, lldb_private::StreamString::GetString(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::StructuredData::ParseJSON().
SBSourceManager SBDebugger::GetSourceManager | ( | ) |
Definition at line 678 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
SBTypeSummary SBDebugger::GetSummaryForType | ( | SBTypeNameSpecifier | type_name | ) |
Definition at line 1658 of file SBDebugger.cpp.
References lldb::SBTypeNameSpecifier::GetSP(), lldb_private::DataVisualization::GetSummaryForType(), lldb::SBTypeNameSpecifier::IsValid(), and LLDB_INSTRUMENT_VA.
SBTypeSynthetic SBDebugger::GetSyntheticForType | ( | SBTypeNameSpecifier | type_name | ) |
Definition at line 1674 of file SBDebugger.cpp.
References lldb::SBTypeNameSpecifier::GetSP(), lldb_private::DataVisualization::GetSyntheticForType(), lldb::SBTypeNameSpecifier::IsValid(), and LLDB_INSTRUMENT_VA.
SBTarget SBDebugger::GetTargetAtIndex | ( | uint32_t | idx | ) |
Definition at line 998 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBTarget::SetSP().
uint32_t SBDebugger::GetTerminalHeight | ( | ) | const |
Definition at line 1408 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
uint32_t SBDebugger::GetTerminalWidth | ( | ) | const |
Definition at line 1395 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBDebugger::GetUseColor | ( | ) | const |
Definition at line 1493 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBDebugger::GetUseExternalEditor | ( | ) |
Definition at line 1481 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBDebugger::GetUseSourceCache | ( | ) | const |
Definition at line 1511 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
static |
Definition at line 743 of file SBDebugger.cpp.
References lldb_private::GetVersion(), and LLDB_INSTRUMENT.
void SBDebugger::HandleCommand | ( | const char * | command | ) |
Definition at line 570 of file SBDebugger.cpp.
References GetCommandInterpreter(), GetErrorFile(), GetOutputFile(), lldb::SBProcess::GetSP(), lldb::SBCommandInterpreter::HandleCommand(), HandleProcessEvent, LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBCommandReturnObject::PutError(), and lldb::SBCommandReturnObject::PutOutput().
void lldb::SBDebugger::HandleProcessEvent | ( | const lldb::SBProcess & | process, |
const lldb::SBEvent & | event, | ||
FileSP | out, | ||
FileSP | err | ||
) |
|
static |
Definition at line 174 of file SBDebugger.cpp.
References InitializeWithErrorHandling(), and LLDB_INSTRUMENT.
|
static |
Definition at line 179 of file SBDebugger.cpp.
References error(), lldb_private::Status::FromError(), lldb_private::Status::FromErrorString(), g_debugger_lifetime, lldb_private::FileSystem::Instance(), and LLDB_INSTRUMENT.
Referenced by Initialize().
bool SBDebugger::InterruptRequested | ( | ) |
Definition at line 1771 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBDebugger::IsValid | ( | ) | const |
Definition at line 329 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
lldb::SBDebugger::LLDB_DEPRECATED_FIXME | ( | "Use DispatchInput(const void *, size_t)" | , |
"DispatchInput(const void *, size_t)" | |||
) |
SBTrace SBDebugger::LoadTraceFromFile | ( | SBError & | error, |
const SBFileSpec & | trace_description_file | ||
) |
Load a trace from a trace description file and create Targets, Processes and Threads based on the contents of such file.
[out] | error | An error if the trace could not be created. |
[in] | trace_description_file | The file containing the necessary information to load the trace. |
Definition at line 1752 of file SBDebugger.cpp.
References error(), LLDB_INSTRUMENT_VA, and lldb::SBTrace::LoadTraceFromFile().
|
static |
Definition at line 316 of file SBDebugger.cpp.
References LLDB_INSTRUMENT, and lldb_private::ModuleList::RemoveOrphanSharedModules().
|
explicit |
Definition at line 333 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
SBDebugger & SBDebugger::operator= | ( | const lldb::SBDebugger & | rhs | ) |
Definition at line 104 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
static |
Definition at line 242 of file SBDebugger.cpp.
References DumpDiagnostics(), and LLDB_INSTRUMENT.
|
static |
Definition at line 229 of file SBDebugger.cpp.
References LLDB_INSTRUMENT.
void SBDebugger::PushInputReader | ( | lldb::SBInputReader & | reader | ) |
Definition at line 1247 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
|
private |
Definition at line 1319 of file SBDebugger.cpp.
References m_opaque_sp.
Referenced by lldb::SBPlatform::Attach(), and lldb::SBTrace::LoadTraceFromFile().
bool SBDebugger::RemoveDestroyCallback | ( | lldb::callback_token_t | token | ) |
Remove the specified callback. Return true if successful.
Definition at line 1742 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::RequestInterrupt | ( | ) |
Definition at line 1758 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
private |
Definition at line 1313 of file SBDebugger.cpp.
References m_opaque_sp.
Referenced by Create(), FindDebuggerWithID(), lldb::SBCommandInterpreter::GetDebugger(), and lldb::SBTarget::GetDebugger().
void SBDebugger::ResetStatistics | ( | ) |
Clear collected statistics for targets belonging to this debugger.
This includes clearing symbol table and debug info parsing/index time for all modules, breakpoint resolve time and target statistics.
Definition at line 1683 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb_private::DebuggerStats::ResetStatistics().
void SBDebugger::RestoreInputTerminalState | ( | ) |
Definition at line 554 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::RunCommandInterpreter | ( | bool | auto_handle_events, |
bool | spawn_thread | ||
) |
Run the command interpreter.
[in] | auto_handle_events | If true, automatically handle resulting events. This takes precedence and overrides the corresponding option in SBCommandInterpreterRunOptions. |
[in] | spawn_thread | If true, start a new thread for IO handling. This takes precedence and overrides the corresponding option in SBCommandInterpreterRunOptions. |
Definition at line 1251 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::CommandInterpreterRunOptions::SetAutoHandleEvents(), and lldb_private::CommandInterpreterRunOptions::SetSpawnThread().
void SBDebugger::RunCommandInterpreter | ( | bool | auto_handle_events, |
bool | spawn_thread, | ||
SBCommandInterpreterRunOptions & | options, | ||
int & | num_errors, | ||
bool & | quit_requested, | ||
bool & | stopped_for_crash | ||
) |
Run the command interpreter.
[in] | auto_handle_events | If true, automatically handle resulting events. This takes precedence and overrides the corresponding option in SBCommandInterpreterRunOptions. |
[in] | spawn_thread | If true, start a new thread for IO handling. This takes precedence and overrides the corresponding option in SBCommandInterpreterRunOptions. |
[in] | options | Parameter collection of type SBCommandInterpreterRunOptions. |
[out] | num_errors | The number of errors. |
[out] | quit_requested | Whether a quit was requested. |
[out] | stopped_for_crash | Whether the interpreter stopped for a crash. |
Definition at line 1263 of file SBDebugger.cpp.
References lldb::eCommandInterpreterResultInferiorCrash, lldb::eCommandInterpreterResultQuitRequested, lldb_private::CommandInterpreterRunResult::GetNumErrors(), lldb_private::CommandInterpreterRunResult::IsResult(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBCommandInterpreterRunOptions::ref(), lldb_private::CommandInterpreter::RunCommandInterpreter(), lldb::SBCommandInterpreterRunOptions::SetAutoHandleEvents(), and lldb::SBCommandInterpreterRunOptions::SetSpawnThread().
SBCommandInterpreterRunResult SBDebugger::RunCommandInterpreter | ( | const SBCommandInterpreterRunOptions & | options | ) |
Definition at line 1287 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBCommandInterpreterRunOptions::ref(), and lldb_private::CommandInterpreter::RunCommandInterpreter().
SBError SBDebugger::RunREPL | ( | lldb::LanguageType | language, |
const char * | repl_options | ||
) |
Definition at line 1301 of file SBDebugger.cpp.
References error(), lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SaveInputTerminalState | ( | ) |
Definition at line 547 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SetAsync | ( | bool | b | ) |
Definition at line 339 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SetCloseInputOnEOF | ( | bool | b | ) |
Definition at line 1574 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA.
SBError SBDebugger::SetCurrentPlatform | ( | const char * | platform_name | ) |
Definition at line 1538 of file SBDebugger.cpp.
References lldb_private::Status::FromErrorString(), lldb_private::PlatformList::GetOrCreate(), LLDB_INSTRUMENT_VA, m_opaque_sp, lldb::SBError::ref(), and lldb_private::PlatformList::SetSelectedPlatform().
bool SBDebugger::SetCurrentPlatformSDKRoot | ( | const char * | sysroot | ) |
Definition at line 1558 of file SBDebugger.cpp.
References GetSelectedPlatform(), and LLDB_INSTRUMENT_VA.
|
static |
Definition at line 706 of file SBDebugger.cpp.
References lldb_private::ArchSpec::IsValid(), LLDB_INSTRUMENT_VA, and lldb_private::Target::SetDefaultArchitecture().
Definition at line 450 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and SetErrorFile().
Definition at line 455 of file SBDebugger.cpp.
References error(), lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBFile::m_opaque_sp.
Referenced by SetErrorFile(), and SetErrorFileHandle().
void SBDebugger::SetErrorFileHandle | ( | FILE * | f, |
bool | transfer_ownership | ||
) |
Definition at line 445 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and SetErrorFile().
Definition at line 415 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and SetInputFile().
Definition at line 399 of file SBDebugger.cpp.
References error(), lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBFile::m_opaque_sp.
Referenced by SetInputFile().
void SBDebugger::SetInputFileHandle | ( | FILE * | f, |
bool | transfer_ownership | ||
) |
Definition at line 366 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
SBError SBDebugger::SetInputString | ( | const char * | data | ) |
Definition at line 373 of file SBDebugger.cpp.
References data, lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBError::SetError().
|
static |
Definition at line 1346 of file SBDebugger.cpp.
References error(), lldb_private::eVarSetOperationAssign, lldb_private::Debugger::FindDebuggerWithInstanceName(), lldb_private::Status::FromErrorStringWithFormat(), LLDB_INSTRUMENT_VA, and lldb::SBError::SetError().
void SBDebugger::SetLoggingCallback | ( | lldb::LogOutputCallback | log_callback, |
void * | baton | ||
) |
Definition at line 1713 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Definition at line 420 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and SetOutputFile().
Definition at line 430 of file SBDebugger.cpp.
References error(), lldb_private::Status::FromErrorString(), LLDB_INSTRUMENT_VA, m_opaque_sp, and lldb::SBFile::m_opaque_sp.
Referenced by SetOutputFile(), and SetOutputFileHandle().
void SBDebugger::SetOutputFileHandle | ( | FILE * | f, |
bool | transfer_ownership | ||
) |
Definition at line 425 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and SetOutputFile().
void SBDebugger::SetPrompt | ( | const char * | prompt | ) |
Definition at line 1434 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SetREPLLanguage | ( | lldb::LanguageType | repl_lang | ) |
Definition at line 1467 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SetScriptLanguage | ( | lldb::ScriptLanguage | script_lang | ) |
Definition at line 1453 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SetSelectedPlatform | ( | lldb::SBPlatform & | platform | ) |
Definition at line 1129 of file SBDebugger.cpp.
References lldb_private::GetLog(), lldb::SBPlatform::GetName(), lldb::SBPlatform::GetSP(), LLDB_INSTRUMENT_VA, LLDB_LOGF, and m_opaque_sp.
void SBDebugger::SetSelectedTarget | ( | SBTarget & | target | ) |
Definition at line 1094 of file SBDebugger.cpp.
References lldb::eDescriptionLevelBrief, lldb::SBStream::GetData(), lldb::SBTarget::GetDescription(), lldb_private::GetLog(), lldb::SBTarget::GetSP(), LLDB_INSTRUMENT_VA, LLDB_LOGF, and m_opaque_sp.
bool SBDebugger::SetShowInlineDiagnostics | ( | bool | value | ) |
Definition at line 1499 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SetTerminalHeight | ( | uint32_t | term_height | ) |
Definition at line 1414 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SetTerminalWidth | ( | uint32_t | term_width | ) |
Definition at line 1401 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBDebugger::SetUseColor | ( | bool | use_color | ) |
Definition at line 1487 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBDebugger::SetUseExternalEditor | ( | bool | input | ) |
Definition at line 1475 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBDebugger::SetUseSourceCache | ( | bool | use_source_cache | ) |
Definition at line 1505 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SkipAppInitFiles | ( | bool | b | ) |
Definition at line 359 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBDebugger::SkipLLDBInitFiles | ( | bool | b | ) |
Definition at line 352 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
static |
Definition at line 749 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and lldb_private::StateAsCString().
Referenced by lldb::SBProcess::AppendEventStateReport(), and lldb::SBProcess::ReportEventState().
|
static |
Definition at line 813 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and lldb_private::StateIsRunningState().
|
static |
Definition at line 821 of file SBDebugger.cpp.
References LLDB_INSTRUMENT_VA, and lldb_private::StateIsStoppedState().
|
static |
Definition at line 1779 of file SBDebugger.cpp.
References lldb_private::TypeSystem::SupportsLanguageStatic().
|
static |
Definition at line 248 of file SBDebugger.cpp.
References g_debugger_lifetime, and LLDB_INSTRUMENT.
|
friend |
Definition at line 505 of file SBDebugger.h.
|
friend |
Definition at line 506 of file SBDebugger.h.
|
friend |
Definition at line 511 of file SBDebugger.h.
|
friend |
Definition at line 512 of file SBDebugger.h.
|
friend |
Definition at line 513 of file SBDebugger.h.
|
friend |
Definition at line 517 of file SBDebugger.h.
|
friend |
Definition at line 514 of file SBDebugger.h.
|
friend |
Definition at line 515 of file SBDebugger.h.
|
friend |
Definition at line 516 of file SBDebugger.h.
|
friend |
Definition at line 518 of file SBDebugger.h.
|
friend |
Definition at line 519 of file SBDebugger.h.
const void* lldb::SBDebugger::data |
Definition at line 354 of file SBDebugger.h.
Referenced by DispatchInput(), GetAvailablePlatformInfoAtIndex(), GetBuildConfiguration(), GetDiagnosticFromEvent(), GetProgressDataFromEvent(), GetScriptInterpreterInfo(), GetSetting(), and SetInputString().
const void size_t lldb::SBDebugger::data_len |
Definition at line 354 of file SBDebugger.h.
Referenced by DispatchInput().
void SBDebugger::HandleProcessEvent |
Definition at line 223 of file SBDebugger.h.
Referenced by HandleCommand().
|
private |
Definition at line 531 of file SBDebugger.h.
Referenced by AddDestroyCallback(), CancelInterruptRequest(), Clear(), CreateTarget(), CreateTargetWithFileAndArch(), CreateTargetWithFileAndTargetTriple(), DeleteTarget(), Destroy(), DispatchInputEndOfFile(), DispatchInputInterrupt(), EnableLog(), FindTargetWithFileAndArch(), FindTargetWithLLDBProcess(), FindTargetWithProcessID(), get(), get_sp(), GetAsync(), GetBroadcaster(), GetCommandInterpreter(), GetDescription(), GetDummyTarget(), GetErrorFile(), GetErrorFileHandle(), GetID(), GetIndexOfTarget(), GetInputFile(), GetInputFileHandle(), GetInstanceName(), GetListener(), GetNumPlatforms(), GetNumTargets(), GetOutputFile(), GetOutputFileHandle(), GetPlatformAtIndex(), GetPrompt(), GetREPLLanguage(), GetScriptInterpreterInfo(), GetScriptLanguage(), GetSelectedPlatform(), GetSelectedTarget(), GetSetting(), GetTargetAtIndex(), GetTerminalHeight(), GetTerminalWidth(), GetUseColor(), GetUseExternalEditor(), GetUseSourceCache(), HandleCommand(), InterruptRequested(), operator=(), ref(), RemoveDestroyCallback(), RequestInterrupt(), reset(), ResetStatistics(), RestoreInputTerminalState(), RunCommandInterpreter(), RunREPL(), SaveInputTerminalState(), lldb::SBStructuredData::SBStructuredData(), SetAsync(), SetCurrentPlatform(), SetErrorFile(), SetInputFile(), SetInputFileHandle(), SetInputString(), SetLoggingCallback(), SetOutputFile(), SetPrompt(), SetREPLLanguage(), SetScriptLanguage(), SetSelectedPlatform(), SetSelectedTarget(), SetShowInlineDiagnostics(), SetTerminalHeight(), SetTerminalWidth(), SetUseColor(), SetUseExternalEditor(), SetUseSourceCache(), SkipAppInitFiles(), and SkipLLDBInitFiles().