LLDB  mainline
Public Member Functions | Static Public Member Functions | Friends | List of all members
lldb::SBDebugger Class Reference

#include <SBDebugger.h>

Public Member Functions

 SBDebugger ()
 
 SBDebugger (const lldb::SBDebugger &rhs)
 
 SBDebugger (const lldb::DebuggerSP &debugger_sp)
 
 ~SBDebugger ()
 
lldb::SBDebuggeroperator= (const lldb::SBDebugger &rhs)
 
 operator bool () const
 
bool IsValid () const
 
void Clear ()
 
void SetAsync (bool b)
 
bool GetAsync ()
 
void SkipLLDBInitFiles (bool b)
 
void SkipAppInitFiles (bool b)
 
void SetInputFileHandle (FILE *f, bool transfer_ownership)
 
void SetOutputFileHandle (FILE *f, bool transfer_ownership)
 
void SetErrorFileHandle (FILE *f, bool transfer_ownership)
 
FILE * GetInputFileHandle ()
 
FILE * GetOutputFileHandle ()
 
FILE * GetErrorFileHandle ()
 
void SaveInputTerminalState ()
 
void RestoreInputTerminalState ()
 
lldb::SBCommandInterpreter GetCommandInterpreter ()
 
void HandleCommand (const char *command)
 
lldb::SBListener GetListener ()
 
void HandleProcessEvent (const lldb::SBProcess &process, const lldb::SBEvent &event, FILE *out, FILE *err)
 
lldb::SBTarget CreateTarget (const char *filename, const char *target_triple, const char *platform_name, bool add_dependent_modules, lldb::SBError &error)
 
lldb::SBTarget CreateTargetWithFileAndTargetTriple (const char *filename, const char *target_triple)
 
lldb::SBTarget CreateTargetWithFileAndArch (const char *filename, const char *archname)
 
lldb::SBTarget CreateTarget (const char *filename)
 
lldb::SBTarget GetDummyTarget ()
 
bool DeleteTarget (lldb::SBTarget &target)
 
lldb::SBTarget GetTargetAtIndex (uint32_t idx)
 
uint32_t GetIndexOfTarget (lldb::SBTarget target)
 
lldb::SBTarget FindTargetWithProcessID (pid_t pid)
 
lldb::SBTarget FindTargetWithFileAndArch (const char *filename, const char *arch)
 
uint32_t GetNumTargets ()
 
lldb::SBTarget GetSelectedTarget ()
 
void SetSelectedTarget (SBTarget &target)
 
lldb::SBPlatform GetSelectedPlatform ()
 
void SetSelectedPlatform (lldb::SBPlatform &platform)
 
uint32_t GetNumPlatforms ()
 Get the number of currently active platforms. More...
 
lldb::SBPlatform GetPlatformAtIndex (uint32_t idx)
 Get one of the currently active platforms. More...
 
uint32_t GetNumAvailablePlatforms ()
 Get the number of available platforms. More...
 
lldb::SBStructuredData GetAvailablePlatformInfoAtIndex (uint32_t idx)
 Get the name and description of one of the available platforms. More...
 
lldb::SBSourceManager GetSourceManager ()
 
lldb::SBError SetCurrentPlatform (const char *platform_name)
 
bool SetCurrentPlatformSDKRoot (const char *sysroot)
 
bool SetUseExternalEditor (bool input)
 
bool GetUseExternalEditor ()
 
bool SetUseColor (bool use_color)
 
bool GetUseColor () const
 
lldb::ScriptLanguage GetScriptingLanguage (const char *script_language_name)
 
bool EnableLog (const char *channel, const char **categories)
 
void SetLoggingCallback (lldb::LogOutputCallback log_callback, void *baton)
 
void DispatchInput (void *baton, const void *data, size_t data_len)
 
void DispatchInput (const void *data, size_t data_len)
 
void DispatchInputInterrupt ()
 
void DispatchInputEndOfFile ()
 
void PushInputReader (lldb::SBInputReader &reader)
 
const char * GetInstanceName ()
 
bool GetDescription (lldb::SBStream &description)
 
uint32_t GetTerminalWidth () const
 
void SetTerminalWidth (uint32_t term_width)
 
lldb::user_id_t GetID ()
 
const char * GetPrompt () const
 
void SetPrompt (const char *prompt)
 
const char * GetReproducerPath () const
 
lldb::ScriptLanguage GetScriptLanguage () const
 
void SetScriptLanguage (lldb::ScriptLanguage script_lang)
 
bool GetCloseInputOnEOF () const
 
void SetCloseInputOnEOF (bool b)
 
SBTypeCategory GetCategory (const char *category_name)
 
SBTypeCategory GetCategory (lldb::LanguageType lang_type)
 
SBTypeCategory CreateCategory (const char *category_name)
 
bool DeleteCategory (const char *category_name)
 
uint32_t GetNumCategories ()
 
SBTypeCategory GetCategoryAtIndex (uint32_t)
 
SBTypeCategory GetDefaultCategory ()
 
SBTypeFormat GetFormatForType (SBTypeNameSpecifier)
 
SBTypeSummary GetSummaryForType (SBTypeNameSpecifier)
 
SBTypeFilter GetFilterForType (SBTypeNameSpecifier)
 
SBTypeSynthetic GetSyntheticForType (SBTypeNameSpecifier)
 
void RunCommandInterpreter (bool auto_handle_events, bool spawn_thread)
 
void RunCommandInterpreter (bool auto_handle_events, bool spawn_thread, SBCommandInterpreterRunOptions &options, int &num_errors, bool &quit_requested, bool &stopped_for_crash)
 
SBError RunREPL (lldb::LanguageType language, const char *repl_options)
 

Static Public Member Functions

static void Initialize ()
 
static lldb::SBError InitializeWithErrorHandling ()
 
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)
 

Friends

class SBCommandInterpreter
 
class SBInputReader
 
class SBListener
 
class SBProcess
 
class SBSourceManager
 
class SBTarget
 

Detailed Description

Definition at line 34 of file SBDebugger.h.

Constructor & Destructor Documentation

◆ SBDebugger() [1/3]

SBDebugger::SBDebugger ( )

Definition at line 165 of file SBDebugger.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBDebugger() [2/3]

SBDebugger::SBDebugger ( const lldb::SBDebugger rhs)

Definition at line 172 of file SBDebugger.cpp.

References LLDB_RECORD_CONSTRUCTOR, and ~SBDebugger().

◆ SBDebugger() [3/3]

SBDebugger::SBDebugger ( const lldb::DebuggerSP &  debugger_sp)

Definition at line 167 of file SBDebugger.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBDebugger()

SBDebugger::~SBDebugger ( )
default

Referenced by SBDebugger().

Member Function Documentation

◆ Clear()

void SBDebugger::Clear ( )

◆ Create() [1/3]

SBDebugger SBDebugger::Create ( )
static

◆ Create() [2/3]

SBDebugger SBDebugger::Create ( bool  source_init_files)
static

Definition at line 229 of file SBDebugger.cpp.

References Create(), LLDB_RECORD_RESULT, and LLDB_RECORD_STATIC_METHOD.

◆ Create() [3/3]

SBDebugger SBDebugger::Create ( bool  source_init_files,
lldb::LogOutputCallback  log_callback,
void *  baton 
)
static

◆ CreateCategory()

SBTypeCategory SBDebugger::CreateCategory ( const char *  category_name)

◆ CreateTarget() [1/2]

lldb::SBTarget SBDebugger::CreateTarget ( const char *  filename,
const char *  target_triple,
const char *  platform_name,
bool  add_dependent_modules,
lldb::SBError error 
)

◆ CreateTarget() [2/2]

SBTarget SBDebugger::CreateTarget ( const char *  filename)

◆ CreateTargetWithFileAndArch()

SBTarget SBDebugger::CreateTargetWithFileAndArch ( const char *  filename,
const char *  archname 
)

◆ CreateTargetWithFileAndTargetTriple()

SBTarget SBDebugger::CreateTargetWithFileAndTargetTriple ( const char *  filename,
const char *  target_triple 
)

◆ DeleteCategory()

bool SBDebugger::DeleteCategory ( const char *  category_name)

Definition at line 1438 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ DeleteTarget()

bool SBDebugger::DeleteTarget ( lldb::SBTarget target)

◆ Destroy()

void SBDebugger::Destroy ( lldb::SBDebugger debugger)
static

◆ DispatchInput() [1/2]

void SBDebugger::DispatchInput ( void *  baton,
const void *  data,
size_t  data_len 
)

Definition at line 1045 of file SBDebugger.cpp.

References LLDB_RECORD_DUMMY.

Referenced by DispatchInput().

◆ DispatchInput() [2/2]

void SBDebugger::DispatchInput ( const void *  data,
size_t  data_len 
)

Definition at line 1052 of file SBDebugger.cpp.

References DispatchInput(), and LLDB_RECORD_DUMMY.

◆ DispatchInputEndOfFile()

void SBDebugger::DispatchInputEndOfFile ( )

◆ DispatchInputInterrupt()

void SBDebugger::DispatchInputInterrupt ( )

◆ EnableLog()

bool SBDebugger::EnableLog ( const char *  channel,
const char **  categories 
)

◆ FindDebuggerWithID()

SBDebugger SBDebugger::FindDebuggerWithID ( int  id)
static

◆ FindTargetWithFileAndArch()

SBTarget SBDebugger::FindTargetWithFileAndArch ( const char *  filename,
const char *  arch 
)

◆ FindTargetWithProcessID()

SBTarget SBDebugger::FindTargetWithProcessID ( lldb::pid_t  pid)

◆ GetAsync()

bool SBDebugger::GetAsync ( )

◆ GetAvailablePlatformInfoAtIndex()

SBStructuredData SBDebugger::GetAvailablePlatformInfoAtIndex ( uint32_t  idx)

Get the name and description of one of the available platforms.

Parameters
[in]idxZero-based index of the platform for which info should be retrieved, must be less than the value returned by GetNumAvailablePlatforms().

Definition at line 1010 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and lldb::SBStructuredData::m_impl_up.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ GetBuildConfiguration()

SBStructuredData SBDebugger::GetBuildConfiguration ( )
static

◆ GetCategory() [1/2]

SBTypeCategory SBDebugger::GetCategory ( const char *  category_name)

◆ GetCategory() [2/2]

SBTypeCategory SBDebugger::GetCategory ( lldb::LanguageType  lang_type)

◆ GetCategoryAtIndex()

SBTypeCategory SBDebugger::GetCategoryAtIndex ( uint32_t  index)

◆ GetCloseInputOnEOF()

bool SBDebugger::GetCloseInputOnEOF ( ) const

◆ GetCommandInterpreter()

SBCommandInterpreter SBDebugger::GetCommandInterpreter ( )

◆ GetDefaultArchitecture()

bool SBDebugger::GetDefaultArchitecture ( char *  arch_name,
size_t  arch_name_len 
)
static

◆ GetDefaultCategory()

SBTypeCategory SBDebugger::GetDefaultCategory ( )

◆ GetDescription()

bool SBDebugger::GetDescription ( lldb::SBStream description)

◆ GetDummyTarget()

SBTarget SBDebugger::GetDummyTarget ( )

◆ GetErrorFileHandle()

FILE * SBDebugger::GetErrorFileHandle ( )

◆ GetFilterForType()

SBTypeFilter SBDebugger::GetFilterForType ( SBTypeNameSpecifier  type_name)

◆ GetFormatForType()

SBTypeFormat SBDebugger::GetFormatForType ( SBTypeNameSpecifier  type_name)

◆ GetID()

user_id_t SBDebugger::GetID ( )

◆ GetIndexOfTarget()

uint32_t SBDebugger::GetIndexOfTarget ( lldb::SBTarget  target)

◆ GetInputFileHandle()

FILE * SBDebugger::GetInputFileHandle ( )

◆ GetInstanceName()

const char * SBDebugger::GetInstanceName ( )

◆ GetInternalVariableValue()

SBStringList SBDebugger::GetInternalVariableValue ( const char *  var_name,
const char *  debugger_instance_name 
)
static

◆ GetListener()

SBListener SBDebugger::GetListener ( )

◆ GetNumAvailablePlatforms()

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 996 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ GetNumCategories()

uint32_t SBDebugger::GetNumCategories ( )

◆ GetNumPlatforms()

uint32_t SBDebugger::GetNumPlatforms ( )

Get the number of currently active platforms.

Definition at line 974 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ GetNumTargets()

uint32_t SBDebugger::GetNumTargets ( )

◆ GetOutputFileHandle()

FILE * SBDebugger::GetOutputFileHandle ( )

◆ GetPlatformAtIndex()

SBPlatform SBDebugger::GetPlatformAtIndex ( uint32_t  idx)

Get one of the currently active platforms.

Definition at line 984 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and lldb::SBPlatform::SetSP().

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ GetPrompt()

const char * SBDebugger::GetPrompt ( ) const

◆ GetReproducerPath()

const char * SBDebugger::GetReproducerPath ( ) const

◆ GetScriptingLanguage()

ScriptLanguage SBDebugger::GetScriptingLanguage ( const char *  script_language_name)

◆ GetScriptLanguage()

ScriptLanguage SBDebugger::GetScriptLanguage ( ) const

◆ GetSelectedPlatform()

SBPlatform SBDebugger::GetSelectedPlatform ( )

◆ GetSelectedTarget()

SBTarget SBDebugger::GetSelectedTarget ( )

◆ GetSourceManager()

SBSourceManager SBDebugger::GetSourceManager ( )

◆ GetSummaryForType()

SBTypeSummary SBDebugger::GetSummaryForType ( SBTypeNameSpecifier  type_name)

◆ GetSyntheticForType()

SBTypeSynthetic SBDebugger::GetSyntheticForType ( SBTypeNameSpecifier  type_name)

◆ GetTargetAtIndex()

SBTarget SBDebugger::GetTargetAtIndex ( uint32_t  idx)

◆ GetTerminalWidth()

uint32_t SBDebugger::GetTerminalWidth ( ) const

◆ GetUseColor()

bool SBDebugger::GetUseColor ( ) const

◆ GetUseExternalEditor()

bool SBDebugger::GetUseExternalEditor ( )

◆ GetVersionString()

const char * SBDebugger::GetVersionString ( )
static

◆ HandleCommand()

void SBDebugger::HandleCommand ( const char *  command)

◆ HandleProcessEvent()

void SBDebugger::HandleProcessEvent ( const lldb::SBProcess process,
const lldb::SBEvent event,
FILE *  out,
FILE *  err 
)

◆ Initialize()

void SBDebugger::Initialize ( )
static

◆ InitializeWithErrorHandling()

lldb::SBError SBDebugger::InitializeWithErrorHandling ( )
static

◆ IsValid()

bool SBDebugger::IsValid ( ) const

◆ MemoryPressureDetected()

void SBDebugger::MemoryPressureDetected ( )
static

◆ operator bool()

SBDebugger::operator bool ( ) const
explicit

Definition at line 299 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator=()

SBDebugger & SBDebugger::operator= ( const lldb::SBDebugger rhs)

Definition at line 178 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

◆ PushInputReader()

void SBDebugger::PushInputReader ( lldb::SBInputReader reader)

Definition at line 1084 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ RestoreInputTerminalState()

void SBDebugger::RestoreInputTerminalState ( )

◆ RunCommandInterpreter() [1/2]

void SBDebugger::RunCommandInterpreter ( bool  auto_handle_events,
bool  spawn_thread 
)

◆ RunCommandInterpreter() [2/2]

void SBDebugger::RunCommandInterpreter ( bool  auto_handle_events,
bool  spawn_thread,
SBCommandInterpreterRunOptions options,
int &  num_errors,
bool &  quit_requested,
bool &  stopped_for_crash 
)

◆ RunREPL()

SBError SBDebugger::RunREPL ( lldb::LanguageType  language,
const char *  repl_options 
)

◆ SaveInputTerminalState()

void SBDebugger::SaveInputTerminalState ( )

◆ SetAsync()

void SBDebugger::SetAsync ( bool  b)

Definition at line 305 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ SetCloseInputOnEOF()

void SBDebugger::SetCloseInputOnEOF ( bool  b)

Definition at line 1385 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ SetCurrentPlatform()

SBError SBDebugger::SetCurrentPlatform ( const char *  platform_name)

◆ SetCurrentPlatformSDKRoot()

bool SBDebugger::SetCurrentPlatformSDKRoot ( const char *  sysroot)

◆ SetDefaultArchitecture()

bool SBDebugger::SetDefaultArchitecture ( const char *  arch_name)
static

◆ SetErrorFileHandle()

void SBDebugger::SetErrorFileHandle ( FILE *  f,
bool  transfer_ownership 
)

Definition at line 361 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

◆ SetInputFileHandle()

void SBDebugger::SetInputFileHandle ( FILE *  f,
bool  transfer_ownership 
)

◆ SetInternalVariable()

SBError SBDebugger::SetInternalVariable ( const char *  var_name,
const char *  value,
const char *  debugger_instance_name 
)
static

◆ SetLoggingCallback()

void SBDebugger::SetLoggingCallback ( lldb::LogOutputCallback  log_callback,
void *  baton 
)

Definition at line 1533 of file SBDebugger.cpp.

References LLDB_RECORD_DUMMY.

◆ SetOutputFileHandle()

void SBDebugger::SetOutputFileHandle ( FILE *  f,
bool  transfer_ownership 
)

Definition at line 353 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

◆ SetPrompt()

void SBDebugger::SetPrompt ( const char *  prompt)

Definition at line 1252 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ SetScriptLanguage()

void SBDebugger::SetScriptLanguage ( lldb::ScriptLanguage  script_lang)

Definition at line 1274 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ SetSelectedPlatform()

void SBDebugger::SetSelectedPlatform ( lldb::SBPlatform platform)

◆ SetSelectedTarget()

void SBDebugger::SetSelectedTarget ( SBTarget target)

◆ SetTerminalWidth()

void SBDebugger::SetTerminalWidth ( uint32_t  term_width)

Definition at line 1230 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ SetUseColor()

bool SBDebugger::SetUseColor ( bool  use_color)

Definition at line 1295 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ SetUseExternalEditor()

bool SBDebugger::SetUseExternalEditor ( bool  input)

Definition at line 1283 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ SkipAppInitFiles()

void SBDebugger::SkipAppInitFiles ( bool  b)

Definition at line 325 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ SkipLLDBInitFiles()

void SBDebugger::SkipLLDBInitFiles ( bool  b)

Definition at line 318 of file SBDebugger.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBDebugger >().

◆ StateAsCString()

const char * SBDebugger::StateAsCString ( lldb::StateType  state)
static

◆ StateIsRunningState()

bool SBDebugger::StateIsRunningState ( lldb::StateType  state)
static

◆ StateIsStoppedState()

bool SBDebugger::StateIsStoppedState ( lldb::StateType  state)
static

◆ Terminate()

void SBDebugger::Terminate ( )
static

Friends And Related Function Documentation

◆ SBCommandInterpreter

friend class SBCommandInterpreter
friend

Definition at line 274 of file SBDebugger.h.

◆ SBInputReader

friend class SBInputReader
friend

Definition at line 275 of file SBDebugger.h.

◆ SBListener

friend class SBListener
friend

Definition at line 276 of file SBDebugger.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 277 of file SBDebugger.h.

◆ SBSourceManager

friend class SBSourceManager
friend

Definition at line 278 of file SBDebugger.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 279 of file SBDebugger.h.


The documentation for this class was generated from the following files: