LLDB mainline
|
#include <SBCommandInterpreter.h>
Public Types | |
enum | { eBroadcastBitThreadShouldExit = (1 << 0) , eBroadcastBitResetPrompt = (1 << 1) , eBroadcastBitQuitCommandReceived = (1 << 2) , eBroadcastBitAsynchronousOutputData = (1 << 3) , eBroadcastBitAsynchronousErrorData = (1 << 4) } |
Public Member Functions | |
SBCommandInterpreter () | |
SBCommandInterpreter (const lldb::SBCommandInterpreter &rhs) | |
~SBCommandInterpreter () | |
const lldb::SBCommandInterpreter & | operator= (const lldb::SBCommandInterpreter &rhs) |
operator bool () const | |
bool | IsValid () const |
bool | CommandExists (const char *cmd) |
Return whether a built-in command with the passed in name or command path exists. | |
bool | UserCommandExists (const char *cmd) |
Return whether a user defined command with the passed in name or command path exists. | |
bool | AliasExists (const char *cmd) |
Return whether the passed in name or command path exists and is an alias to some other command. | |
lldb::SBBroadcaster | GetBroadcaster () |
bool | HasCommands () |
bool | HasAliases () |
bool | HasAliasOptions () |
bool | IsInteractive () |
lldb::SBProcess | GetProcess () |
lldb::SBDebugger | GetDebugger () |
lldb::SBCommand | AddMultiwordCommand (const char *name, const char *help) |
lldb::SBCommand | AddCommand (const char *name, lldb::SBCommandPluginInterface *impl, const char *help) |
Add a new command to the lldb::CommandInterpreter. | |
lldb::SBCommand | AddCommand (const char *name, lldb::SBCommandPluginInterface *impl, const char *help, const char *syntax) |
Add a new command to the lldb::CommandInterpreter. | |
lldb::SBCommand | AddCommand (const char *name, lldb::SBCommandPluginInterface *impl, const char *help, const char *syntax, const char *auto_repeat_command) |
Add a new command to the lldb::CommandInterpreter. | |
void | SourceInitFileInGlobalDirectory (lldb::SBCommandReturnObject &result) |
void | SourceInitFileInHomeDirectory (lldb::SBCommandReturnObject &result) |
void | SourceInitFileInHomeDirectory (lldb::SBCommandReturnObject &result, bool is_repl) |
void | SourceInitFileInCurrentWorkingDirectory (lldb::SBCommandReturnObject &result) |
lldb::ReturnStatus | HandleCommand (const char *command_line, lldb::SBCommandReturnObject &result, bool add_to_history=false) |
lldb::ReturnStatus | HandleCommand (const char *command_line, SBExecutionContext &exe_ctx, SBCommandReturnObject &result, bool add_to_history=false) |
void | HandleCommandsFromFile (lldb::SBFileSpec &file, lldb::SBExecutionContext &override_context, lldb::SBCommandInterpreterRunOptions &options, lldb::SBCommandReturnObject result) |
int | HandleCompletion (const char *current_line, const char *cursor, const char *last_char, int match_start_point, int max_return_elements, lldb::SBStringList &matches) |
int | HandleCompletion (const char *current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements, lldb::SBStringList &matches) |
int | HandleCompletionWithDescriptions (const char *current_line, const char *cursor, const char *last_char, int match_start_point, int max_return_elements, lldb::SBStringList &matches, lldb::SBStringList &descriptions) |
int | HandleCompletionWithDescriptions (const char *current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements, lldb::SBStringList &matches, lldb::SBStringList &descriptions) |
bool | WasInterrupted () const |
Returns whether an interrupt flag was raised either by the SBDebugger - when the function is not running on the RunCommandInterpreter thread, or by SBCommandInterpreter::InterruptCommand if it is. | |
bool | InterruptCommand () |
Interrupts the command currently executing in the RunCommandInterpreter thread. | |
bool | SetCommandOverrideCallback (const char *command_name, lldb::CommandOverrideCallback callback, void *baton) |
bool | IsActive () |
Return true if the command interpreter is the active IO handler. | |
const char * | GetIOHandlerControlSequence (char ch) |
Get the string that needs to be written to the debugger stdin file handle when a control character is typed. | |
bool | GetPromptOnQuit () |
void | SetPromptOnQuit (bool b) |
void | AllowExitCodeOnQuit (bool allow) |
Sets whether the command interpreter should allow custom exit codes for the 'quit' command. | |
bool | HasCustomQuitExitCode () |
Returns true if the user has called the 'quit' command with a custom exit code. | |
int | GetQuitStatus () |
Returns the exit code that the user has specified when running the 'quit' command. | |
void | ResolveCommand (const char *command_line, SBCommandReturnObject &result) |
Resolve the command just as HandleCommand would, expanding abbreviations and aliases. | |
Static Public Member Functions | |
static const char * | GetArgumentTypeAsCString (const lldb::CommandArgumentType arg_type) |
static const char * | GetArgumentDescriptionAsCString (const lldb::CommandArgumentType arg_type) |
static bool | EventIsCommandInterpreterEvent (const lldb::SBEvent &event) |
static const char * | GetBroadcasterClass () |
Protected Member Functions | |
SBCommandInterpreter (lldb_private::CommandInterpreter *interpreter_ptr) | |
Access using SBDebugger::GetCommandInterpreter();. | |
lldb_private::CommandInterpreter & | ref () |
lldb_private::CommandInterpreter * | get () |
void | reset (lldb_private::CommandInterpreter *) |
Private Attributes | |
lldb_private::CommandInterpreter * | m_opaque_ptr |
Friends | |
class | lldb_private::CommandPluginInterfaceImplementation |
class | SBDebugger |
Definition at line 23 of file SBCommandInterpreter.h.
anonymous enum |
Enumerator | |
---|---|
eBroadcastBitThreadShouldExit | |
eBroadcastBitResetPrompt | |
eBroadcastBitQuitCommandReceived | |
eBroadcastBitAsynchronousOutputData | |
eBroadcastBitAsynchronousErrorData |
Definition at line 25 of file SBCommandInterpreter.h.
SBCommandInterpreter::SBCommandInterpreter | ( | ) |
Definition at line 86 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
SBCommandInterpreter::SBCommandInterpreter | ( | const lldb::SBCommandInterpreter & | rhs | ) |
Definition at line 95 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
|
default |
|
protected |
Access using SBDebugger::GetCommandInterpreter();.
Definition at line 90 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
lldb::SBCommand SBCommandInterpreter::AddCommand | ( | const char * | name, |
lldb::SBCommandPluginInterface * | impl, | ||
const char * | help | ||
) |
Add a new command to the lldb::CommandInterpreter.
The new command won't support autorepeat. If you need this functionality, use the override of this function that accepts the auto_repeat_command parameter.
[in] | name | The name of the command. |
[in] | impl | The handler of this command. |
[in] | help | The general description to show as part of the help message of this command. |
Definition at line 575 of file SBCommandInterpreter.cpp.
References AddCommand(), and LLDB_INSTRUMENT_VA.
Referenced by AddCommand().
lldb::SBCommand SBCommandInterpreter::AddCommand | ( | const char * | name, |
lldb::SBCommandPluginInterface * | impl, | ||
const char * | help, | ||
const char * | syntax | ||
) |
Add a new command to the lldb::CommandInterpreter.
The new command won't support autorepeat. If you need this functionality, use the override of this function that accepts the auto_repeat_command parameter.
[in] | name | The name of the command. |
[in] | impl | The handler of this command. |
[in] | help | The general description to show as part of the help message of this command. |
[in] | syntax | The syntax to show as part of the help message of this command. This could include a description of the different arguments and flags this command accepts. |
Definition at line 584 of file SBCommandInterpreter.cpp.
References AddCommand(), and LLDB_INSTRUMENT_VA.
lldb::SBCommand SBCommandInterpreter::AddCommand | ( | const char * | name, |
lldb::SBCommandPluginInterface * | impl, | ||
const char * | help, | ||
const char * | syntax, | ||
const char * | auto_repeat_command | ||
) |
Add a new command to the lldb::CommandInterpreter.
[in] | name | The name of the command. |
[in] | impl | The handler of this command. |
[in] | help | The general description to show as part of the help message of this command. |
[in] | syntax | The syntax to show as part of the help message of this command. This could include a description of the different arguments and flags this command accepts. |
[in] | auto_repeat_command | Autorepeating is triggered when the user presses Enter successively after executing a command. If nullptr is provided, the previous exact command will be repeated. If "" is provided, autorepeating is disabled. Otherwise, the provided string is used as a repeat command. |
Definition at line 591 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::AddUserCommand(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb_private::Status::Success().
lldb::SBCommand SBCommandInterpreter::AddMultiwordCommand | ( | const char * | name, |
const char * | help | ||
) |
Definition at line 562 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::AddUserCommand(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb_private::Status::Success().
bool SBCommandInterpreter::AliasExists | ( | const char * | cmd | ) |
Return whether the passed in name or command path exists and is an alias to some other command.
[in] | cmd | The command or command path to search for. |
Definition at line 134 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::AliasExists(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
void SBCommandInterpreter::AllowExitCodeOnQuit | ( | bool | allow | ) |
Sets whether the command interpreter should allow custom exit codes for the 'quit' command.
Definition at line 403 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::AllowExitCodeOnQuit(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::CommandExists | ( | const char * | cmd | ) |
Return whether a built-in command with the passed in name or command path exists.
[in] | cmd | The command or command path to search for. |
Definition at line 120 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::CommandExists(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
static |
Definition at line 536 of file SBCommandInterpreter.cpp.
References GetBroadcasterClass(), and LLDB_INSTRUMENT_VA.
|
protected |
Definition at line 439 of file SBCommandInterpreter.cpp.
References m_opaque_ptr.
Referenced by lldb::SBDebugger::Create().
|
static |
Definition at line 528 of file SBCommandInterpreter.cpp.
References lldb_private::CommandObject::GetArgumentDescriptionAsCString(), lldb_private::ConstString::GetCString(), and LLDB_INSTRUMENT_VA.
|
static |
Definition at line 520 of file SBCommandInterpreter.cpp.
References lldb_private::CommandObject::GetArgumentTypeAsCString(), lldb_private::ConstString::GetCString(), and LLDB_INSTRUMENT_VA.
SBBroadcaster SBCommandInterpreter::GetBroadcaster | ( | ) |
Definition at line 506 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
static |
Definition at line 514 of file SBCommandInterpreter.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::CommandInterpreter::GetStaticBroadcasterClass(), and LLDB_INSTRUMENT.
Referenced by EventIsCommandInterpreterEvent().
SBDebugger SBCommandInterpreter::GetDebugger | ( | ) |
Definition at line 380 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetDebugger(), IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBDebugger::reset().
const char * SBCommandInterpreter::GetIOHandlerControlSequence | ( | char | ch | ) |
Get the string that needs to be written to the debugger stdin file handle when a control character is typed.
Some GUI programs will intercept "control + char" sequences and want to have them do what normally would happen when using a real terminal, so this function allows GUI programs to emulate this functionality.
[in] | ch | The character that was typed along with the control key |
Definition at line 159 of file SBCommandInterpreter.cpp.
References lldb_private::ConstString::GetCString(), lldb_private::CommandInterpreter::GetDebugger(), lldb_private::Debugger::GetTopIOHandlerControlSequence(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
SBProcess SBCommandInterpreter::GetProcess | ( | ) |
Definition at line 363 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetDebugger(), lldb_private::Debugger::GetSelectedTarget(), IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb::SBProcess::SetSP().
bool SBCommandInterpreter::GetPromptOnQuit | ( | ) |
Definition at line 390 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetPromptOnQuit(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
int SBCommandInterpreter::GetQuitStatus | ( | ) |
Returns the exit code that the user has specified when running the 'quit' command.
Returns 0 if the user hasn't called 'quit' at all or without a custom exit code.
Definition at line 419 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetQuitExitCode(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
lldb::ReturnStatus SBCommandInterpreter::HandleCommand | ( | const char * | command_line, |
lldb::SBCommandReturnObject & | result, | ||
bool | add_to_history = false |
||
) |
Definition at line 171 of file SBCommandInterpreter.cpp.
References HandleCommand(), and LLDB_INSTRUMENT_VA.
Referenced by lldb::SBDebugger::HandleCommand(), and HandleCommand().
lldb::ReturnStatus SBCommandInterpreter::HandleCommand | ( | const char * | command_line, |
SBExecutionContext & | exe_ctx, | ||
SBCommandReturnObject & | result, | ||
bool | add_to_history = false |
||
) |
Definition at line 180 of file SBCommandInterpreter.cpp.
References lldb_private::CommandReturnObject::AppendError(), lldb::SBCommandReturnObject::Clear(), lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, lldb::SBExecutionContext::get(), lldb::SBCommandReturnObject::GetStatus(), lldb_private::CommandInterpreter::HandleCommand(), IsValid(), LLDB_INSTRUMENT_VA, lldb_private::ExecutionContextRef::Lock(), m_opaque_ptr, lldb::SBCommandReturnObject::ref(), and lldb_private::CommandReturnObject::SetInteractive().
void SBCommandInterpreter::HandleCommandsFromFile | ( | lldb::SBFileSpec & | file, |
lldb::SBExecutionContext & | override_context, | ||
lldb::SBCommandInterpreterRunOptions & | options, | ||
lldb::SBCommandReturnObject | result | ||
) |
Definition at line 205 of file SBCommandInterpreter.cpp.
References lldb_private::CommandReturnObject::AppendError(), lldb_private::CommandReturnObject::AppendErrorWithFormat(), lldb::SBExecutionContext::get(), lldb::SBStream::GetData(), lldb::SBFileSpec::GetDescription(), lldb_private::CommandInterpreter::HandleCommandsFromFile(), IsValid(), lldb::SBFileSpec::IsValid(), LLDB_INSTRUMENT_VA, lldb_private::ExecutionContextRef::Lock(), m_opaque_ptr, lldb::SBCommandInterpreterRunOptions::ref(), lldb::SBCommandReturnObject::ref(), and lldb::SBFileSpec::ref().
int SBCommandInterpreter::HandleCompletion | ( | const char * | current_line, |
const char * | cursor, | ||
const char * | last_char, | ||
int | match_start_point, | ||
int | max_return_elements, | ||
lldb::SBStringList & | matches | ||
) |
Definition at line 233 of file SBCommandInterpreter.cpp.
References HandleCompletionWithDescriptions(), and LLDB_INSTRUMENT_VA.
Referenced by HandleCompletion().
int SBCommandInterpreter::HandleCompletion | ( | const char * | current_line, |
uint32_t | cursor_pos, | ||
int | match_start_point, | ||
int | max_return_elements, | ||
lldb::SBStringList & | matches | ||
) |
Definition at line 325 of file SBCommandInterpreter.cpp.
References HandleCompletion(), and LLDB_INSTRUMENT_VA.
int SBCommandInterpreter::HandleCompletionWithDescriptions | ( | const char * | current_line, |
const char * | cursor, | ||
const char * | last_char, | ||
int | match_start_point, | ||
int | max_return_elements, | ||
lldb::SBStringList & | matches, | ||
lldb::SBStringList & | descriptions | ||
) |
Definition at line 245 of file SBCommandInterpreter.cpp.
References lldb::SBStringList::AppendList(), lldb_private::Args::EscapeLLDBCommandArgument(), lldb_private::Args::GetArgumentCount(), lldb_private::CompletionRequest::GetCursorArgumentPrefix(), lldb_private::CompletionResult::GetDescriptions(), lldb_private::CompletionResult::GetMatches(), lldb_private::CompletionResult::GetNumberOfResults(), lldb_private::CompletionRequest::GetParsedArg(), lldb_private::CompletionRequest::GetParsedLine(), lldb_private::Args::ArgEntry::GetQuoteChar(), lldb_private::StringList::GetSize(), lldb_private::CommandInterpreter::HandleCompletion(), lldb_private::StringList::InsertStringAtIndex(), lldb_private::Args::ArgEntry::IsQuoted(), IsValid(), LLDB_INSTRUMENT_VA, lldb_private::StringList::LongestCommonPrefix(), and m_opaque_ptr.
Referenced by HandleCompletion(), and HandleCompletionWithDescriptions().
int SBCommandInterpreter::HandleCompletionWithDescriptions | ( | const char * | current_line, |
uint32_t | cursor_pos, | ||
int | match_start_point, | ||
int | max_return_elements, | ||
lldb::SBStringList & | matches, | ||
lldb::SBStringList & | descriptions | ||
) |
Definition at line 311 of file SBCommandInterpreter.cpp.
References HandleCompletionWithDescriptions(), and LLDB_INSTRUMENT_VA.
bool SBCommandInterpreter::HasAliases | ( | ) |
Definition at line 345 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::HasAliases(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::HasAliasOptions | ( | ) |
Definition at line 351 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::HasAliasOptions(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::HasCommands | ( | ) |
Definition at line 339 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::HasCommands(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::HasCustomQuitExitCode | ( | ) |
Returns true if the user has called the 'quit' command with a custom exit code.
Definition at line 410 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetQuitExitCode(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::InterruptCommand | ( | ) |
Interrupts the command currently executing in the RunCommandInterpreter thread.
Definition at line 153 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::InterruptCommand(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::IsActive | ( | ) |
Return true if the command interpreter is the active IO handler.
This indicates that any input coming into the debugger handles will go to the command interpreter and will result in LLDB command line commands being executed.
Definition at line 141 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::IsActive(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::IsInteractive | ( | ) |
Definition at line 357 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::IsInteractive(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::IsValid | ( | ) | const |
Definition at line 110 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by AliasExists(), CommandExists(), GetDebugger(), GetIOHandlerControlSequence(), GetProcess(), GetPromptOnQuit(), HandleCommand(), HandleCommandsFromFile(), HandleCompletionWithDescriptions(), HasAliases(), HasAliasOptions(), HasCommands(), InterruptCommand(), IsActive(), IsInteractive(), ResolveCommand(), SetCommandOverrideCallback(), SetPromptOnQuit(), SourceInitFileInCurrentWorkingDirectory(), SourceInitFileInGlobalDirectory(), SourceInitFileInHomeDirectory(), UserCommandExists(), and WasInterrupted().
|
explicit |
Definition at line 114 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
const SBCommandInterpreter & SBCommandInterpreter::operator= | ( | const lldb::SBCommandInterpreter & | rhs | ) |
Definition at line 102 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
protected |
Definition at line 441 of file SBCommandInterpreter.cpp.
References m_opaque_ptr.
|
protected |
Definition at line 446 of file SBCommandInterpreter.cpp.
References m_opaque_ptr.
Referenced by lldb::SBDebugger::GetCommandInterpreter().
void SBCommandInterpreter::ResolveCommand | ( | const char * | command_line, |
SBCommandReturnObject & | result | ||
) |
Resolve the command just as HandleCommand would, expanding abbreviations and aliases.
If successful, result->GetOutput has the full expansion.
Definition at line 426 of file SBCommandInterpreter.cpp.
References lldb_private::CommandReturnObject::AppendError(), lldb::SBCommandReturnObject::Clear(), IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, lldb::SBCommandReturnObject::ref(), and lldb_private::CommandInterpreter::ResolveCommand().
bool SBCommandInterpreter::SetCommandOverrideCallback | ( | const char * | command_name, |
lldb::CommandOverrideCallback | callback, | ||
void * | baton | ||
) |
Definition at line 544 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetCommandObjectForCommand(), IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb_private::CommandObject::SetOverrideCallback().
void SBCommandInterpreter::SetPromptOnQuit | ( | bool | b | ) |
Definition at line 396 of file SBCommandInterpreter.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb_private::CommandInterpreter::SetPromptOnQuit().
void SBCommandInterpreter::SourceInitFileInCurrentWorkingDirectory | ( | lldb::SBCommandReturnObject & | result | ) |
Definition at line 490 of file SBCommandInterpreter.cpp.
References lldb_private::CommandReturnObject::AppendError(), lldb::SBCommandReturnObject::Clear(), lldb_private::CommandInterpreter::GetDebugger(), lldb_private::Debugger::GetSelectedTarget(), IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, lldb::SBCommandReturnObject::ref(), and lldb_private::CommandInterpreter::SourceInitFileCwd().
void SBCommandInterpreter::SourceInitFileInGlobalDirectory | ( | lldb::SBCommandReturnObject & | result | ) |
Definition at line 451 of file SBCommandInterpreter.cpp.
References lldb_private::CommandReturnObject::AppendError(), lldb::SBCommandReturnObject::Clear(), lldb_private::CommandInterpreter::GetDebugger(), lldb_private::Debugger::GetSelectedTarget(), IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, lldb::SBCommandReturnObject::ref(), and lldb_private::CommandInterpreter::SourceInitFileGlobal().
Referenced by lldb::SBDebugger::Create().
void SBCommandInterpreter::SourceInitFileInHomeDirectory | ( | lldb::SBCommandReturnObject & | result | ) |
Definition at line 467 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA, and SourceInitFileInHomeDirectory().
Referenced by lldb::SBDebugger::Create(), and SourceInitFileInHomeDirectory().
void SBCommandInterpreter::SourceInitFileInHomeDirectory | ( | lldb::SBCommandReturnObject & | result, |
bool | is_repl | ||
) |
Definition at line 474 of file SBCommandInterpreter.cpp.
References lldb_private::CommandReturnObject::AppendError(), lldb::SBCommandReturnObject::Clear(), lldb_private::CommandInterpreter::GetDebugger(), lldb_private::Debugger::GetSelectedTarget(), IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, lldb::SBCommandReturnObject::ref(), and lldb_private::CommandInterpreter::SourceInitFileHome().
bool SBCommandInterpreter::UserCommandExists | ( | const char * | cmd | ) |
Return whether a user defined command with the passed in name or command path exists.
[in] | cmd | The command or command path to search for. |
Definition at line 127 of file SBCommandInterpreter.cpp.
References IsValid(), LLDB_INSTRUMENT_VA, m_opaque_ptr, and lldb_private::CommandInterpreter::UserCommandExists().
bool SBCommandInterpreter::WasInterrupted | ( | ) | const |
Returns whether an interrupt flag was raised either by the SBDebugger - when the function is not running on the RunCommandInterpreter thread, or by SBCommandInterpreter::InterruptCommand if it is.
If your code is doing interruptible work, check this API periodically, and interrupt if it returns true.
Definition at line 147 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetDebugger(), lldb_private::Debugger::InterruptRequested(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
friend |
Definition at line 319 of file SBCommandInterpreter.h.
|
friend |
Definition at line 330 of file SBCommandInterpreter.h.
|
private |
Definition at line 332 of file SBCommandInterpreter.h.
Referenced by AddCommand(), AddMultiwordCommand(), AliasExists(), AllowExitCodeOnQuit(), CommandExists(), get(), GetBroadcaster(), GetDebugger(), GetIOHandlerControlSequence(), GetProcess(), GetPromptOnQuit(), GetQuitStatus(), HandleCommand(), HandleCommandsFromFile(), HandleCompletionWithDescriptions(), HasAliases(), HasAliasOptions(), HasCommands(), HasCustomQuitExitCode(), InterruptCommand(), IsActive(), IsInteractive(), operator=(), ref(), reset(), ResolveCommand(), SetCommandOverrideCallback(), SetPromptOnQuit(), SourceInitFileInCurrentWorkingDirectory(), SourceInitFileInGlobalDirectory(), SourceInitFileInHomeDirectory(), UserCommandExists(), and WasInterrupted().