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. | |
SBStructuredData | GetStatistics () |
SBStructuredData | GetTranscript () |
Returns a list of handled commands, output and error. | |
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 24 of file SBCommandInterpreter.h.
anonymous enum |
Enumerator | |
---|---|
eBroadcastBitThreadShouldExit | |
eBroadcastBitResetPrompt | |
eBroadcastBitQuitCommandReceived | |
eBroadcastBitAsynchronousOutputData | |
eBroadcastBitAsynchronousErrorData |
Definition at line 26 of file SBCommandInterpreter.h.
SBCommandInterpreter::SBCommandInterpreter | ( | ) |
Definition at line 85 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
SBCommandInterpreter::SBCommandInterpreter | ( | const lldb::SBCommandInterpreter & | rhs | ) |
Definition at line 94 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
|
default |
|
protected |
Access using SBDebugger::GetCommandInterpreter();.
Definition at line 89 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 603 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 612 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 619 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 590 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 133 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 402 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 119 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 438 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 505 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
static |
Definition at line 513 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 379 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 158 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 362 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 389 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 418 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetQuitExitCode(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
SBStructuredData SBCommandInterpreter::GetStatistics | ( | ) |
Definition at line 562 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetStatistics(), IsValid(), LLDB_INSTRUMENT_VA, lldb::SBStructuredData::m_impl_up, m_opaque_ptr, and lldb_private::StructuredData::ParseJSON().
SBStructuredData SBCommandInterpreter::GetTranscript | ( | ) |
Returns a list of handled commands, output and error.
Each element in the list is a dictionary with the following keys/values:
Turn on settings interpreter.save-transcript
for LLDB to populate this list. Otherwise this list is empty.
Definition at line 575 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::GetTranscript(), IsValid(), LLDB_INSTRUMENT_VA, lldb::SBStructuredData::m_impl_up, and m_opaque_ptr.
lldb::ReturnStatus SBCommandInterpreter::HandleCommand | ( | const char * | command_line, |
lldb::SBCommandReturnObject & | result, | ||
bool | add_to_history = false |
||
) |
Definition at line 170 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 179 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 204 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 232 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 324 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 244 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 310 of file SBCommandInterpreter.cpp.
References HandleCompletionWithDescriptions(), and LLDB_INSTRUMENT_VA.
bool SBCommandInterpreter::HasAliases | ( | ) |
Definition at line 344 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::HasAliases(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::HasAliasOptions | ( | ) |
Definition at line 350 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::HasAliasOptions(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::HasCommands | ( | ) |
Definition at line 338 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 409 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 152 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 140 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::IsActive(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::IsInteractive | ( | ) |
Definition at line 356 of file SBCommandInterpreter.cpp.
References lldb_private::CommandInterpreter::IsInteractive(), IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_ptr.
bool SBCommandInterpreter::IsValid | ( | ) | const |
Definition at line 109 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by AliasExists(), CommandExists(), GetDebugger(), GetIOHandlerControlSequence(), GetProcess(), GetPromptOnQuit(), GetStatistics(), GetTranscript(), HandleCommand(), HandleCommandsFromFile(), HandleCompletionWithDescriptions(), HasAliases(), HasAliasOptions(), HasCommands(), InterruptCommand(), IsActive(), IsInteractive(), ResolveCommand(), SetCommandOverrideCallback(), SetPromptOnQuit(), SourceInitFileInCurrentWorkingDirectory(), SourceInitFileInGlobalDirectory(), SourceInitFileInHomeDirectory(), UserCommandExists(), and WasInterrupted().
|
explicit |
Definition at line 113 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA.
const SBCommandInterpreter & SBCommandInterpreter::operator= | ( | const lldb::SBCommandInterpreter & | rhs | ) |
Definition at line 101 of file SBCommandInterpreter.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_ptr.
|
protected |
Definition at line 440 of file SBCommandInterpreter.cpp.
References m_opaque_ptr.
|
protected |
Definition at line 445 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 425 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 395 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 489 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 450 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 466 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 473 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 126 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 146 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 335 of file SBCommandInterpreter.h.
|
friend |
Definition at line 346 of file SBCommandInterpreter.h.
|
private |
Definition at line 348 of file SBCommandInterpreter.h.
Referenced by AddCommand(), AddMultiwordCommand(), AliasExists(), AllowExitCodeOnQuit(), CommandExists(), get(), GetBroadcaster(), GetDebugger(), GetIOHandlerControlSequence(), GetProcess(), GetPromptOnQuit(), GetQuitStatus(), GetStatistics(), GetTranscript(), HandleCommand(), HandleCommandsFromFile(), HandleCompletionWithDescriptions(), HasAliases(), HasAliasOptions(), HasCommands(), HasCustomQuitExitCode(), InterruptCommand(), IsActive(), IsInteractive(), operator=(), ref(), reset(), ResolveCommand(), SetCommandOverrideCallback(), SetPromptOnQuit(), SourceInitFileInCurrentWorkingDirectory(), SourceInitFileInGlobalDirectory(), SourceInitFileInHomeDirectory(), UserCommandExists(), and WasInterrupted().