LLDB mainline
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lldb_private::CommandObject Class Referenceabstract

#include <CommandObject.h>

Inheritance diagram for lldb_private::CommandObject:
Inheritance graph
[legend]

Classes

struct  ArgumentHelpCallback
 
struct  ArgumentTableEntry
 Entries in the main argument information table. More...
 
struct  CommandArgumentData
 Used to build individual command argument lists. More...
 

Public Types

enum  IDType { eBreakpointArgs = 0 , eWatchpointArgs = 1 }
 
typedef llvm::StringRef() ArgumentHelpCallbackFunction()
 
typedef std::vector< CommandArgumentDataCommandArgumentEntry
 
typedef std::map< std::string, lldb::CommandObjectSPCommandMap
 

Public Member Functions

 CommandObject (CommandInterpreter &interpreter, llvm::StringRef name, llvm::StringRef help="", llvm::StringRef syntax="", uint32_t flags=0)
 
virtual ~CommandObject ()=default
 
CommandInterpreterGetCommandInterpreter ()
 
DebuggerGetDebugger ()
 
virtual llvm::StringRef GetHelp ()
 
virtual llvm::StringRef GetHelpLong ()
 
virtual llvm::StringRef GetSyntax ()
 
llvm::StringRef GetCommandName () const
 
virtual void SetHelp (llvm::StringRef str)
 
virtual void SetHelpLong (llvm::StringRef str)
 
void SetSyntax (llvm::StringRef str)
 
virtual bool IsRemovable () const
 
virtual bool IsMultiwordObject ()
 
bool IsUserCommand ()
 
void SetIsUserCommand (bool is_user)
 
virtual CommandObjectMultiwordGetAsMultiwordCommand ()
 
virtual bool IsAlias ()
 
virtual bool IsDashDashCommand ()
 
virtual lldb::CommandObjectSP GetSubcommandSP (llvm::StringRef sub_cmd, StringList *matches=nullptr)
 
virtual lldb::CommandObjectSP GetSubcommandSPExact (llvm::StringRef sub_cmd)
 
virtual CommandObjectGetSubcommandObject (llvm::StringRef sub_cmd, StringList *matches=nullptr)
 
void FormatLongHelpText (Stream &output_strm, llvm::StringRef long_help)
 
void GenerateHelpText (CommandReturnObject &result)
 
virtual void GenerateHelpText (Stream &result)
 
virtual bool LoadSubCommand (llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj)
 
virtual llvm::Error LoadUserSubcommand (llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj, bool can_replace)
 
virtual bool WantsRawCommandString ()=0
 
virtual bool WantsCompletion ()
 
virtual OptionsGetOptions ()
 
void AddSimpleArgumentList (lldb::CommandArgumentType arg_type, ArgumentRepetitionType repetition_type=eArgRepeatPlain)
 
void AddIDsArgumentData (IDType type)
 
int GetNumArgumentEntries ()
 
CommandArgumentEntryGetArgumentEntryAtIndex (int idx)
 
void GetFormattedCommandArguments (Stream &str, uint32_t opt_set_mask=LLDB_OPT_SET_ALL)
 
bool ParseOptions (Args &args, CommandReturnObject &result)
 
void SetCommandName (llvm::StringRef name)
 
virtual void HandleCompletion (CompletionRequest &request)
 This default version handles calling option argument completions and then calls HandleArgumentCompletion if the cursor is on an argument, not an option.
 
virtual void HandleArgumentCompletion (CompletionRequest &request, OptionElementVector &opt_element_vector)
 The default version handles argument definitions that have only one argument type, and use one of the argument types that have an entry in the CommonCompletions.
 
bool HelpTextContainsWord (llvm::StringRef search_word, bool search_short_help=true, bool search_long_help=true, bool search_syntax=true, bool search_options=true)
 
FlagsGetFlags ()
 The flags accessor.
 
const FlagsGetFlags () const
 The flags const accessor.
 
virtual std::optional< std::string > GetRepeatCommand (Args &current_command_args, uint32_t index)
 Get the command that appropriate for a "repeat" of the current command.
 
bool HasOverrideCallback () const
 
void SetOverrideCallback (lldb::CommandOverrideCallback callback, void *baton)
 
void SetOverrideCallback (lldb_private::CommandOverrideCallbackWithResult callback, void *baton)
 
bool InvokeOverrideCallback (const char **argv, CommandReturnObject &result)
 
virtual void Execute (const char *args_string, CommandReturnObject &result)=0
 

Static Public Member Functions

static const char * GetArgumentTypeAsCString (const lldb::CommandArgumentType arg_type)
 
static const char * GetArgumentDescriptionAsCString (const lldb::CommandArgumentType arg_type)
 
static lldb::CommandArgumentType LookupArgumentName (llvm::StringRef arg_name)
 
static const ArgumentTableEntryFindArgumentDataByType (lldb::CommandArgumentType arg_type)
 
static void GetArgumentHelp (Stream &str, lldb::CommandArgumentType arg_type, CommandInterpreter &interpreter)
 
static const char * GetArgumentName (lldb::CommandArgumentType arg_type)
 
static bool IsPairType (ArgumentRepetitionType arg_repeat_type)
 
static std::optional< ArgumentRepetitionTypeArgRepetitionFromString (llvm::StringRef string)
 

Protected Member Functions

bool ParseOptionsAndNotify (Args &args, CommandReturnObject &result, OptionGroupOptions &group_options, ExecutionContext &exe_ctx)
 
virtual const char * GetInvalidTargetDescription ()
 
virtual const char * GetInvalidProcessDescription ()
 
virtual const char * GetInvalidThreadDescription ()
 
virtual const char * GetInvalidFrameDescription ()
 
virtual const char * GetInvalidRegContextDescription ()
 
TargetGetDummyTarget ()
 
TargetGetTarget ()
 
ThreadGetDefaultThread ()
 
bool CheckRequirements (CommandReturnObject &result)
 Check the command to make sure anything required by this command is available.
 
void Cleanup ()
 

Protected Attributes

CommandInterpreterm_interpreter
 
ExecutionContext m_exe_ctx
 
std::unique_lock< std::recursive_mutex > m_api_locker
 
std::string m_cmd_name
 
std::string m_cmd_help_short
 
std::string m_cmd_help_long
 
std::string m_cmd_syntax
 
Flags m_flags
 
std::vector< CommandArgumentEntrym_arguments
 
lldb::CommandOverrideCallback m_deprecated_command_override_callback
 
lldb_private::CommandOverrideCallbackWithResult m_command_override_callback
 
void * m_command_override_baton
 
bool m_is_user_command = false
 

Detailed Description

Definition at line 69 of file CommandObject.h.

Member Typedef Documentation

◆ ArgumentHelpCallbackFunction

typedef llvm::StringRef() lldb_private::CommandObject::ArgumentHelpCallbackFunction()

Definition at line 71 of file CommandObject.h.

◆ CommandArgumentEntry

Definition at line 108 of file CommandObject.h.

◆ CommandMap

Definition at line 110 of file CommandObject.h.

Member Enumeration Documentation

◆ IDType

Enumerator
eBreakpointArgs 
eWatchpointArgs 

Definition at line 221 of file CommandObject.h.

Constructor & Destructor Documentation

◆ CommandObject()

CommandObject::CommandObject ( CommandInterpreter interpreter,
llvm::StringRef  name,
llvm::StringRef  help = "",
llvm::StringRef  syntax = "",
uint32_t  flags = 0 
)

Definition at line 43 of file CommandObject.cpp.

References m_cmd_help_short, and m_cmd_syntax.

◆ ~CommandObject()

virtual lldb_private::CommandObject::~CommandObject ( )
virtualdefault

Member Function Documentation

◆ AddIDsArgumentData()

void CommandObject::AddIDsArgumentData ( CommandObject::IDType  type)

◆ AddSimpleArgumentList()

void CommandObject::AddSimpleArgumentList ( lldb::CommandArgumentType  arg_type,
ArgumentRepetitionType  repetition_type = eArgRepeatPlain 
)

Definition at line 395 of file CommandObject.cpp.

References lldb_private::CommandObject::CommandArgumentData::arg_repetition, lldb_private::CommandObject::CommandArgumentData::arg_type, and m_arguments.

Referenced by lldb_private::CommandObjectApropos::CommandObjectApropos(), CommandObjectBreakpointCommandDelete::CommandObjectBreakpointCommandDelete(), CommandObjectBreakpointCommandList::CommandObjectBreakpointCommandList(), CommandObjectBreakpointList::CommandObjectBreakpointList(), CommandObjectBreakpointNameAdd::CommandObjectBreakpointNameAdd(), CommandObjectBreakpointNameConfigure::CommandObjectBreakpointNameConfigure(), CommandObjectBreakpointNameDelete::CommandObjectBreakpointNameDelete(), CommandObjectCommandsContainerAdd::CommandObjectCommandsContainerAdd(), CommandObjectCommandsContainerDelete::CommandObjectCommandsContainerDelete(), CommandObjectCommandsDelete::CommandObjectCommandsDelete(), CommandObjectCommandsScriptAdd::CommandObjectCommandsScriptAdd(), CommandObjectCommandsScriptDelete::CommandObjectCommandsScriptDelete(), CommandObjectCommandsScriptImport::CommandObjectCommandsScriptImport(), CommandObjectCommandsSource::CommandObjectCommandsSource(), CommandObjectCommandsUnalias::CommandObjectCommandsUnalias(), lldb_private::CommandObjectDWIMPrint::CommandObjectDWIMPrint(), CommandObjectFrameDiagnose::CommandObjectFrameDiagnose(), CommandObjectFrameRecognizerDelete::CommandObjectFrameRecognizerDelete(), CommandObjectFrameRecognizerInfo::CommandObjectFrameRecognizerInfo(), CommandObjectFrameSelect::CommandObjectFrameSelect(), CommandObjectFrameVariable::CommandObjectFrameVariable(), lldb_private::CommandObjectHelp::CommandObjectHelp(), lldb_private::CommandObjectIterateOverThreads::CommandObjectIterateOverThreads(), CommandObjectLogDump::CommandObjectLogDump(), CommandObjectLogList::CommandObjectLogList(), CommandObjectLogTimerEnable::CommandObjectLogTimerEnable(), CommandObjectLogTimerIncrement::CommandObjectLogTimerIncrement(), lldb_private::CommandObjectMultipleThreads::CommandObjectMultipleThreads(), CommandObjectPlatformConnect::CommandObjectPlatformConnect(), CommandObjectPlatformFClose::CommandObjectPlatformFClose(), CommandObjectPlatformFOpen::CommandObjectPlatformFOpen(), CommandObjectPlatformFRead::CommandObjectPlatformFRead(), CommandObjectPlatformFWrite::CommandObjectPlatformFWrite(), CommandObjectPlatformMkDir::CommandObjectPlatformMkDir(), CommandObjectPlatformProcessInfo::CommandObjectPlatformProcessInfo(), CommandObjectPlatformProcessLaunch::CommandObjectPlatformProcessLaunch(), CommandObjectPlatformSelect::CommandObjectPlatformSelect(), CommandObjectPlatformShell::CommandObjectPlatformShell(), CommandObjectPluginLoad::CommandObjectPluginLoad(), CommandObjectProcessConnect::CommandObjectProcessConnect(), CommandObjectProcessHandle::CommandObjectProcessHandle(), CommandObjectProcessLaunch::CommandObjectProcessLaunch(), CommandObjectProcessLoad::CommandObjectProcessLoad(), CommandObjectProcessSaveCore::CommandObjectProcessSaveCore(), CommandObjectProcessSignal::CommandObjectProcessSignal(), CommandObjectProcessUnload::CommandObjectProcessUnload(), lldb_private::CommandObjectQuit::CommandObjectQuit(), CommandObjectRegisterInfo::CommandObjectRegisterInfo(), CommandObjectSessionSave::CommandObjectSessionSave(), CommandObjectSettingsClear::CommandObjectSettingsClear(), CommandObjectSettingsShow::CommandObjectSettingsShow(), CommandObjectSettingsWrite::CommandObjectSettingsWrite(), CommandObjectTargetCreate::CommandObjectTargetCreate(), CommandObjectTargetDelete::CommandObjectTargetDelete(), CommandObjectTargetModulesAdd::CommandObjectTargetModulesAdd(), CommandObjectTargetModulesDumpClangPCMInfo::CommandObjectTargetModulesDumpClangPCMInfo(), CommandObjectTargetModulesList::CommandObjectTargetModulesList(), CommandObjectTargetModulesLookup::CommandObjectTargetModulesLookup(), CommandObjectTargetModulesModuleAutoComplete::CommandObjectTargetModulesModuleAutoComplete(), CommandObjectTargetModulesSearchPathsQuery::CommandObjectTargetModulesSearchPathsQuery(), CommandObjectTargetModulesSourceFileAutoComplete::CommandObjectTargetModulesSourceFileAutoComplete(), CommandObjectTargetSelect::CommandObjectTargetSelect(), CommandObjectTargetStopHookDelete::CommandObjectTargetStopHookDelete(), CommandObjectTargetStopHookEnableDisable::CommandObjectTargetStopHookEnableDisable(), CommandObjectTargetSymbolsAdd::CommandObjectTargetSymbolsAdd(), CommandObjectTargetVariable::CommandObjectTargetVariable(), CommandObjectThreadContinue::CommandObjectThreadContinue(), CommandObjectThreadPlanDiscard::CommandObjectThreadPlanDiscard(), CommandObjectThreadPlanPrune::CommandObjectThreadPlanPrune(), CommandObjectThreadReturn::CommandObjectThreadReturn(), CommandObjectThreadStepWithTypeAndScope::CommandObjectThreadStepWithTypeAndScope(), CommandObjectThreadUntil::CommandObjectThreadUntil(), CommandObjectTraceDumpFunctionCalls::CommandObjectTraceDumpFunctionCalls(), CommandObjectTraceDumpInstructions::CommandObjectTraceDumpInstructions(), CommandObjectTraceLoad::CommandObjectTraceLoad(), CommandObjectTraceSave::CommandObjectTraceSave(), CommandObjectTraceSchema::CommandObjectTraceSchema(), CommandObjectTypeFilterList::CommandObjectTypeFilterList(), CommandObjectTypeFormatAdd::CommandObjectTypeFormatAdd(), CommandObjectTypeFormatterClear::CommandObjectTypeFormatterClear(), CommandObjectTypeFormatterDelete::CommandObjectTypeFormatterDelete(), CommandObjectTypeFormatterList< FormatterType >::CommandObjectTypeFormatterList(), CommandObjectTypeSummaryAdd::CommandObjectTypeSummaryAdd(), CommandObjectWatchpointCommandDelete::CommandObjectWatchpointCommandDelete(), CommandObjectWatchpointCommandList::CommandObjectWatchpointCommandList(), CommandObjectTypeCategoryList::DoExecute(), and CommandObjectTypeCategoryEnable::CommandOptions::OptionParsingStarting().

◆ ArgRepetitionFromString()

std::optional< ArgumentRepetitionType > CommandObject::ArgRepetitionFromString ( llvm::StringRef  string)
static

◆ CheckRequirements()

bool CommandObject::CheckRequirements ( CommandReturnObject result)
protected

Check the command to make sure anything required by this command is available.

Parameters
[out]resultA command result object, if it is not okay to run the command this will be filled in with a suitable error.
Returns
true if it is okay to run this command, false otherwise.

Definition at line 147 of file CommandObject.cpp.

References lldb_private::CommandReturnObject::AppendError(), lldb::eStateAttaching, lldb::eStateConnected, lldb::eStateCrashed, lldb::eStateDetached, lldb::eStateExited, lldb::eStateInvalid, lldb::eStateLaunching, lldb::eStateRunning, lldb::eStateStepping, lldb::eStateStopped, lldb::eStateSuspended, lldb::eStateUnloaded, lldb_private::Flags::Get(), lldb_private::Target::GetAPIMutex(), lldb_private::CommandInterpreter::GetExecutionContext(), GetFlags(), lldb_private::ExecutionContext::GetFramePtr(), GetInvalidFrameDescription(), GetInvalidProcessDescription(), GetInvalidRegContextDescription(), GetInvalidTargetDescription(), GetInvalidThreadDescription(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::ExecutionContext::GetRegisterContext(), lldb_private::Process::GetState(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::ExecutionContext::GetThreadPtr(), lldb_private::Target::GetTrace(), lldb_private::ExecutionContext::HasFrameScope(), lldb_private::ExecutionContext::HasProcessScope(), lldb_private::ExecutionContext::HasTargetScope(), lldb_private::ExecutionContext::HasThreadScope(), m_api_locker, m_exe_ctx, and m_interpreter.

Referenced by lldb_private::CommandObjectParsed::Execute(), and lldb_private::CommandObjectRaw::Execute().

◆ Cleanup()

void CommandObject::Cleanup ( )
protected

◆ Execute()

virtual void lldb_private::CommandObject::Execute ( const char *  args_string,
CommandReturnObject result 
)
pure virtual

◆ FindArgumentDataByType()

const CommandObject::ArgumentTableEntry * CommandObject::FindArgumentDataByType ( lldb::CommandArgumentType  arg_type)
static

◆ FormatLongHelpText()

void CommandObject::FormatLongHelpText ( Stream output_strm,
llvm::StringRef  long_help 
)

◆ GenerateHelpText() [1/2]

void CommandObject::GenerateHelpText ( CommandReturnObject result)

◆ GenerateHelpText() [2/2]

void CommandObject::GenerateHelpText ( Stream result)
virtual

◆ GetArgumentDescriptionAsCString()

const char * CommandObject::GetArgumentDescriptionAsCString ( const lldb::CommandArgumentType  arg_type)
static

◆ GetArgumentEntryAtIndex()

CommandObject::CommandArgumentEntry * CommandObject::GetArgumentEntryAtIndex ( int  idx)

Definition at line 416 of file CommandObject.cpp.

References m_arguments.

Referenced by HandleArgumentCompletion().

◆ GetArgumentHelp()

void CommandObject::GetArgumentHelp ( Stream str,
lldb::CommandArgumentType  arg_type,
CommandInterpreter interpreter 
)
static

◆ GetArgumentName()

const char * CommandObject::GetArgumentName ( lldb::CommandArgumentType  arg_type)
static

◆ GetArgumentTypeAsCString()

const char * CommandObject::GetArgumentTypeAsCString ( const lldb::CommandArgumentType  arg_type)
static

◆ GetAsMultiwordCommand()

virtual CommandObjectMultiword * lldb_private::CommandObject::GetAsMultiwordCommand ( )
inlinevirtual

◆ GetCommandInterpreter()

CommandInterpreter & lldb_private::CommandObject::GetCommandInterpreter ( )
inline

Definition at line 124 of file CommandObject.h.

References m_interpreter.

Referenced by CommandObjectCommandsScriptAdd::DoExecute(), CommandObjectCommandsScriptDelete::DoExecute(), CommandObjectCommandsContainerAdd::DoExecute(), CommandObjectCommandsContainerDelete::DoExecute(), lldb_private::CommandObjectDisassemble::DoExecute(), CommandObjectFrameSelect::DoExecute(), CommandObjectRegisterInfo::DoExecute(), sddarwinlog_private::EnableCommand::DoExecute(), sddarwinlog_private::StatusCommand::DoExecute(), CommandObjectPlatformShell::DoExecute(), FormatLongHelpText(), GenerateHelpText(), HandleArgumentCompletion(), CommandObjectBreakpointModify::HandleArgumentCompletion(), CommandObjectBreakpointEnable::HandleArgumentCompletion(), CommandObjectBreakpointDelete::HandleArgumentCompletion(), CommandObjectBreakpointNameAdd::HandleArgumentCompletion(), CommandObjectBreakpointNameDelete::HandleArgumentCompletion(), CommandObjectBreakpointWrite::HandleArgumentCompletion(), CommandObjectPythonFunction::HandleArgumentCompletion(), CommandObjectScriptingObjectRaw::HandleArgumentCompletion(), CommandObjectPlatformGetFile::HandleArgumentCompletion(), CommandObjectPlatformProcessLaunch::HandleArgumentCompletion(), CommandObjectPlatformInstall::HandleArgumentCompletion(), CommandObjectRegisterWrite::HandleArgumentCompletion(), CommandObjectSettingsList::HandleArgumentCompletion(), CommandObjectSettingsRemove::HandleArgumentCompletion(), CommandObjectSettingsReplace::HandleArgumentCompletion(), CommandObjectSettingsInsertBefore::HandleArgumentCompletion(), CommandObjectSettingsInsertAfter::HandleArgumentCompletion(), CommandObjectSettingsAppend::HandleArgumentCompletion(), CommandObjectSettingsClear::HandleArgumentCompletion(), CommandObjectTargetModulesModuleAutoComplete::HandleArgumentCompletion(), CommandObjectTargetModulesSourceFileAutoComplete::HandleArgumentCompletion(), CommandObjectThreadSelect::HandleArgumentCompletion(), CommandObjectThreadInfo::HandleArgumentCompletion(), CommandObjectThreadException::HandleArgumentCompletion(), CommandObjectThreadSiginfo::HandleArgumentCompletion(), CommandObjectTraceSave::HandleArgumentCompletion(), CommandObjectTraceLoad::HandleArgumentCompletion(), HandleCompletion(), CommandObjectPlatformSelect::HandleCompletion(), lldb_private::CommandObjectRegexCommand::HandleCompletion(), HelpTextContainsWord(), lldb_private::LanguageRuntime::InitializeCommands(), lldb_private::CommandObjectMultiword::LoadSubCommand(), lldb_private::CommandObjectMultiword::LoadUserSubcommand(), CommandObjectTargetModulesLookup::LookupInModule(), and ParseOptions().

◆ GetCommandName()

llvm::StringRef CommandObject::GetCommandName ( ) const

◆ GetDebugger()

Debugger & CommandObject::GetDebugger ( )

Definition at line 53 of file CommandObject.cpp.

References lldb_private::CommandInterpreter::GetDebugger(), and m_interpreter.

Referenced by lldb_private::CommandObjectDisassemble::CheckRangeSize(), CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed(), CommandObjectScriptingObjectRaw::CommandObjectScriptingObjectRaw(), CommandObjectScriptingObjectParsed::DoExecute(), lldb_private::CommandObjectGUI::DoExecute(), CommandObjectLogEnable::DoExecute(), CommandObjectLogDump::DoExecute(), CommandObjectPlatformSelect::DoExecute(), CommandObjectPlatformStatus::DoExecute(), CommandObjectPlatformConnect::DoExecute(), CommandObjectPlatformDisconnect::DoExecute(), CommandObjectPlatformSettings::DoExecute(), CommandObjectPlatformMkDir::DoExecute(), CommandObjectPlatformFOpen::DoExecute(), CommandObjectPlatformFClose::DoExecute(), CommandObjectPlatformFRead::DoExecute(), CommandObjectPlatformFWrite::DoExecute(), CommandObjectPlatformProcessLaunch::DoExecute(), CommandObjectPlatformProcessList::DoExecute(), CommandObjectPlatformProcessInfo::DoExecute(), CommandObjectPlatformInstall::DoExecute(), CommandObjectSettingsShow::DoExecute(), CommandObjectSettingsWrite::DoExecute(), CommandObjectSettingsList::DoExecute(), CommandObjectTargetList::DoExecute(), CommandObjectTargetSelect::DoExecute(), CommandObjectTargetDelete::DoExecute(), lldb_private::CommandObjectApropos::DoExecute(), CommandObjectCommandsSource::DoExecute(), CommandObjectCommandsScriptImport::DoExecute(), CommandObjectCommandsScriptAdd::DoExecute(), lldb_private::CommandObjectDisassemble::DoExecute(), CommandObjectFrameSelect::DoExecute(), CommandObjectFrameRecognizerAdd::DoExecute(), CommandObjectPlatformProcessAttach::DoExecute(), CommandObjectPluginLoad::DoExecute(), CommandObjectProcessAttach::DoExecute(), CommandObjectProcessContinue::DoExecute(), CommandObjectProcessConnect::DoExecute(), CommandObjectRegisterInfo::DoExecute(), CommandObjectSettingsClear::DoExecute(), CommandObjectSourceList::DoExecute(), CommandObjectSourceCacheDump::DoExecute(), CommandObjectSourceCacheClear::DoExecute(), CommandObjectStatsDump::DoExecute(), CommandObjectTargetCreate::DoExecute(), CommandObjectTargetModulesDumpSymtab::DoExecute(), CommandObjectTargetModulesDumpSections::DoExecute(), CommandObjectTargetModulesDumpClangAST::DoExecute(), CommandObjectTargetModulesDumpSymfile::DoExecute(), CommandObjectTargetModulesDumpLineTable::DoExecute(), CommandObjectTargetModulesDumpSeparateDebugInfoFiles::DoExecute(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), CommandObjectTraceLoad::DoExecute(), CommandObjectProcessLaunch::DoExecute(), lldb_private::CommandObjectDWIMPrint::DoExecute(), CommandObjectScriptingRun::DoExecute(), CommandObjectSettingsRemove::DoExecute(), CommandObjectSettingsReplace::DoExecute(), CommandObjectSettingsInsertBefore::DoExecute(), CommandObjectSettingsInsertAfter::DoExecute(), CommandObjectSettingsAppend::DoExecute(), CommandObjectPythonFunction::DoExecute(), CommandObjectScriptingObjectRaw::DoExecute(), CommandObjectPlatformShell::DoExecute(), GenerateHelpText(), CommandObjectScriptingObjectRaw::GetHelp(), CommandObjectScriptingObjectParsed::GetHelp(), CommandObjectPythonFunction::GetHelpLong(), CommandObjectScriptingObjectRaw::GetHelpLong(), CommandObjectScriptingObjectParsed::GetHelpLong(), CommandObjectPlatformConnect::GetOptions(), CommandObjectScriptingObjectRaw::GetRepeatCommand(), CommandObjectScriptingObjectParsed::GetRepeatCommand(), CommandObjectThreadBacktrace::HandleOneThread(), HelpTextContainsWord(), CommandObjectCommandsScriptAdd::IOHandlerInputComplete(), CommandObjectTypeSummaryAdd::IOHandlerInputComplete(), CommandObjectTypeSynthAdd::IOHandlerInputComplete(), CommandObjectTargetModulesLookup::LookupInModule(), CommandObjectTypeFilterAdd::CommandOptions::OptionParsingStarting(), and ParseOptions().

◆ GetDefaultThread()

Thread * CommandObject::GetDefaultThread ( )
protected

◆ GetDummyTarget()

Target & CommandObject::GetDummyTarget ( )
protected

◆ GetFlags() [1/2]

Flags & lldb_private::CommandObject::GetFlags ( )
inline

The flags accessor.

Returns
A reference to the Flags member variable.

Definition at line 287 of file CommandObject.h.

References m_flags.

Referenced by CheckRequirements(), CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed(), and CommandObjectScriptingObjectRaw::CommandObjectScriptingObjectRaw().

◆ GetFlags() [2/2]

const Flags & lldb_private::CommandObject::GetFlags ( ) const
inline

The flags const accessor.

Returns
A const reference to the Flags member variable.

Definition at line 293 of file CommandObject.h.

References m_flags.

◆ GetFormattedCommandArguments()

void CommandObject::GetFormattedCommandArguments ( Stream str,
uint32_t  opt_set_mask = LLDB_OPT_SET_ALL 
)

◆ GetHelp()

llvm::StringRef CommandObject::GetHelp ( )
virtual

◆ GetHelpLong()

llvm::StringRef CommandObject::GetHelpLong ( )
virtual

◆ GetInvalidFrameDescription()

virtual const char * lldb_private::CommandObject::GetInvalidFrameDescription ( )
inlineprotectedvirtual

Definition at line 363 of file CommandObject.h.

Referenced by CheckRequirements().

◆ GetInvalidProcessDescription()

virtual const char * lldb_private::CommandObject::GetInvalidProcessDescription ( )
inlineprotectedvirtual

Definition at line 355 of file CommandObject.h.

Referenced by CheckRequirements().

◆ GetInvalidRegContextDescription()

virtual const char * lldb_private::CommandObject::GetInvalidRegContextDescription ( )
inlineprotectedvirtual

Definition at line 367 of file CommandObject.h.

Referenced by CheckRequirements().

◆ GetInvalidTargetDescription()

virtual const char * lldb_private::CommandObject::GetInvalidTargetDescription ( )
inlineprotectedvirtual

Definition at line 351 of file CommandObject.h.

Referenced by CheckRequirements().

◆ GetInvalidThreadDescription()

virtual const char * lldb_private::CommandObject::GetInvalidThreadDescription ( )
inlineprotectedvirtual

Definition at line 359 of file CommandObject.h.

Referenced by CheckRequirements().

◆ GetNumArgumentEntries()

int CommandObject::GetNumArgumentEntries ( )

Definition at line 413 of file CommandObject.cpp.

References m_arguments.

Referenced by GenerateHelpText(), and HandleArgumentCompletion().

◆ GetOptions()

Options * CommandObject::GetOptions ( )
virtual

Reimplemented in lldb_private::CommandAlias, lldb_private::CommandObjectProxy, CommandObjectBreakpointSet, CommandObjectBreakpointModify, CommandObjectBreakpointList, CommandObjectBreakpointClear, CommandObjectBreakpointDelete, CommandObjectBreakpointNameConfigure, CommandObjectBreakpointNameAdd, CommandObjectBreakpointNameDelete, CommandObjectBreakpointNameList, CommandObjectBreakpointRead, CommandObjectBreakpointWrite, CommandObjectBreakpointCommandAdd, CommandObjectBreakpointCommandDelete, CommandObjectCommandsSource, CommandObjectCommandsAlias, CommandObjectCommandsAddRegex, CommandObjectScriptingObjectParsed, CommandObjectCommandsScriptImport, CommandObjectCommandsScriptAdd, CommandObjectCommandsContainerAdd, CommandObjectDiagnosticsDump, lldb_private::CommandObjectDisassemble, lldb_private::CommandObjectDWIMPrint, lldb_private::CommandObjectExpression, CommandObjectFrameDiagnose, CommandObjectFrameSelect, CommandObjectFrameVariable, CommandObjectFrameRecognizerAdd, lldb_private::CommandObjectHelp, CommandObjectLogEnable, CommandObjectLogDump, CommandObjectMemoryRead, CommandObjectMemoryFind, CommandObjectMemoryWrite, CommandObjectMemoryRegion, CommandObjectMemoryTagWrite, CommandObjectPlatformSelect, CommandObjectPlatformConnect, CommandObjectPlatformSettings, CommandObjectPlatformMkDir, CommandObjectPlatformFOpen, CommandObjectPlatformFRead, CommandObjectPlatformFWrite, CommandObjectPlatformProcessLaunch, CommandObjectPlatformProcessList, CommandObjectPlatformProcessAttach, CommandObjectPlatformShell, CommandObjectProcessLaunch, CommandObjectProcessAttach, CommandObjectProcessContinue, CommandObjectProcessDetach, CommandObjectProcessConnect, CommandObjectProcessLoad, CommandObjectProcessSaveCore, CommandObjectProcessStatus, CommandObjectProcessHandle, CommandObjectRegisterRead, CommandObjectScriptingRun, CommandObjectScriptingExtensionList, CommandObjectSessionHistory, CommandObjectSettingsSet, CommandObjectSettingsWrite, CommandObjectSettingsRead, CommandObjectSettingsClear, CommandObjectSourceInfo, CommandObjectSourceList, CommandObjectStatsDump, CommandObjectTargetCreate, CommandObjectTargetDelete, CommandObjectTargetVariable, CommandObjectTargetModulesDumpSymtab, CommandObjectTargetModulesDumpLineTable, CommandObjectTargetModulesDumpSeparateDebugInfoFiles, CommandObjectTargetModulesAdd, CommandObjectTargetModulesLoad, CommandObjectTargetModulesList, CommandObjectTargetModulesShowUnwind, CommandObjectTargetModulesLookup, CommandObjectTargetSymbolsAdd, CommandObjectTargetStopHookAdd, CommandObjectThreadBacktrace, CommandObjectThreadStepWithTypeAndScope, CommandObjectThreadUntil, CommandObjectThreadSelect, CommandObjectThreadInfo, CommandObjectThreadReturn, CommandObjectThreadJump, CommandObjectThreadPlanList, CommandObjectTraceDumpFunctionCalls, CommandObjectTraceDumpInstructions, CommandObjectTraceDumpInfo, CommandObjectTraceSave, CommandObjectTraceLoad, CommandObjectTraceDump, CommandObjectTraceSchema, CommandObjectTypeSummaryAdd, CommandObjectTypeSynthAdd, CommandObjectTypeFormatAdd, CommandObjectTypeFormatterDelete, CommandObjectTypeFormatterClear, CommandObjectTypeFormatterList< FormatterType >, CommandObjectTypeCategoryDefine, CommandObjectTypeCategoryEnable, CommandObjectTypeCategoryDisable, CommandObjectTypeFilterAdd, CommandObjectTypeLookup, CommandObjectWatchpointList, CommandObjectWatchpointDelete, CommandObjectWatchpointIgnore, CommandObjectWatchpointModify, CommandObjectWatchpointSetVariable, CommandObjectWatchpointSetExpression, CommandObjectWatchpointCommandAdd, CommandObjectObjC_ClassTable_Dump, CommandObjectProcessGDBRemoteSpeedTest, CommandObjectProcessKDPPacketSend, CommandObjectProcessMinidumpDump, sddarwinlog_private::EnableCommand, lldb_private::trace_intel_pt::CommandObjectThreadTraceStartIntelPT, lldb_private::trace_intel_pt::CommandObjectProcessTraceStartIntelPT, and lldb_private::ctf::CommandObjectThreadTraceExportCTF.

Definition at line 100 of file CommandObject.cpp.

Referenced by GenerateHelpText(), lldb_private::CommandObjectProxy::GetOptions(), GetSyntax(), HandleCompletion(), HelpTextContainsWord(), ParseOptions(), and lldb_private::CommandInterpreter::ResolveCommandImpl().

◆ GetRepeatCommand()

virtual std::optional< std::string > lldb_private::CommandObject::GetRepeatCommand ( Args current_command_args,
uint32_t  index 
)
inlinevirtual

Get the command that appropriate for a "repeat" of the current command.

Parameters
[in]current_command_argsThe command arguments.
[in]indexThis is for internal use - it is how the completion request is tracked in CommandObjectMultiword, and should otherwise be ignored.
Returns
std::nullopt if there is no special repeat command - it will use the current command line. Otherwise a std::string containing the command to be repeated. If the string is empty, the command won't be allow repeating.

Reimplemented in CommandObjectScriptingObjectRaw, CommandObjectScriptingObjectParsed, CommandObjectThreadBacktrace, lldb_private::CommandObjectMultiword, lldb_private::CommandObjectProxy, lldb_private::CommandPluginInterfaceImplementation, CommandObjectCommandsSource, CommandObjectMemoryRead, CommandObjectMemoryHistory, CommandObjectMemoryRegion, CommandObjectProcessLaunch, CommandObjectSourceList, and CommandObjectTraceDumpInstructions.

Definition at line 310 of file CommandObject.h.

Referenced by lldb_private::CommandObjectMultiword::GetRepeatCommand(), lldb_private::CommandObjectProxy::GetRepeatCommand(), and lldb_private::CommandInterpreter::HandleCommand().

◆ GetSubcommandObject()

virtual CommandObject * lldb_private::CommandObject::GetSubcommandObject ( llvm::StringRef  sub_cmd,
StringList matches = nullptr 
)
inlinevirtual

◆ GetSubcommandSP()

virtual lldb::CommandObjectSP lldb_private::CommandObject::GetSubcommandSP ( llvm::StringRef  sub_cmd,
StringList matches = nullptr 
)
inlinevirtual

◆ GetSubcommandSPExact()

virtual lldb::CommandObjectSP lldb_private::CommandObject::GetSubcommandSPExact ( llvm::StringRef  sub_cmd)
inlinevirtual

Reimplemented in lldb_private::CommandObjectMultiword.

Definition at line 166 of file CommandObject.h.

◆ GetSyntax()

llvm::StringRef CommandObject::GetSyntax ( )
virtual

◆ GetTarget()

Target & CommandObject::GetTarget ( )
protected

Definition at line 761 of file CommandObject.cpp.

References lldb_private::CommandInterpreter::GetDebugger(), GetDummyTarget(), lldb_private::CommandInterpreter::GetExecutionContext(), lldb_private::Debugger::GetSelectedTarget(), lldb_private::ExecutionContext::GetTargetPtr(), m_exe_ctx, and m_interpreter.

Referenced by lldb_private::CommandObjectDisassemble::CheckRangeSize(), CommandObjectSourceList::DisplayFunctionSource(), CommandObjectTargetModulesAdd::DoExecute(), CommandObjectTargetModulesLoad::DoExecute(), CommandObjectBreakpointSet::DoExecute(), CommandObjectBreakpointModify::DoExecute(), CommandObjectBreakpointEnable::DoExecute(), CommandObjectBreakpointList::DoExecute(), CommandObjectBreakpointClear::DoExecute(), CommandObjectBreakpointDelete::DoExecute(), CommandObjectBreakpointNameConfigure::DoExecute(), CommandObjectBreakpointNameAdd::DoExecute(), CommandObjectBreakpointNameDelete::DoExecute(), CommandObjectBreakpointNameList::DoExecute(), CommandObjectBreakpointRead::DoExecute(), CommandObjectBreakpointWrite::DoExecute(), CommandObjectBreakpointCommandDelete::DoExecute(), CommandObjectBreakpointCommandList::DoExecute(), lldb_private::CommandObjectDisassemble::DoExecute(), CommandObjectFrameVariable::DoExecute(), CommandObjectFrameRecognizerAdd::DoExecute(), CommandObjectFrameRecognizerClear::DoExecute(), CommandObjectFrameRecognizerDelete::DoExecute(), CommandObjectFrameRecognizerList::DoExecute(), CommandObjectFrameRecognizerInfo::DoExecute(), CommandObjectProcessContinue::DoExecute(), CommandObjectSourceInfo::DoExecute(), CommandObjectSourceList::DoExecute(), CommandObjectTargetModulesSearchPathsAdd::DoExecute(), CommandObjectTargetModulesSearchPathsClear::DoExecute(), CommandObjectTargetModulesSearchPathsInsert::DoExecute(), CommandObjectTargetModulesSearchPathsList::DoExecute(), CommandObjectTargetModulesSearchPathsQuery::DoExecute(), CommandObjectTargetModulesDumpObjfile::DoExecute(), CommandObjectTargetModulesDumpSymtab::DoExecute(), CommandObjectTargetModulesDumpSections::DoExecute(), CommandObjectTargetModulesDumpClangAST::DoExecute(), CommandObjectTargetModulesDumpSymfile::DoExecute(), CommandObjectTargetModulesDumpSeparateDebugInfoFiles::DoExecute(), CommandObjectTargetModulesList::DoExecute(), CommandObjectTargetModulesLookup::DoExecute(), CommandObjectTargetStopHookDelete::DoExecute(), CommandObjectTargetStopHookEnableDisable::DoExecute(), CommandObjectTargetStopHookList::DoExecute(), CommandObjectTargetDumpTypesystem::DoExecute(), CommandObjectTargetDumpSectionLoadList::DoExecute(), CommandObjectThreadUntil::DoExecute(), CommandObjectWatchpointCommandDelete::DoExecute(), CommandObjectWatchpointCommandList::DoExecute(), sddarwinlog_private::EnableCommand::DoExecute(), sddarwinlog_private::StatusCommand::DoExecute(), CommandObjectProcessHandle::DoExecute(), CommandObjectSourceInfo::DumpFileLinesInCompUnit(), CommandObjectSourceInfo::DumpLinesForAddress(), CommandObjectSourceInfo::DumpLinesForFile(), CommandObjectSourceInfo::DumpLinesInFunctions(), CommandObjectSourceInfo::DumpLinesInSymbolContexts(), lldb_private::CommandObjectDisassemble::GetContainingAddressRanges(), lldb_private::CommandObjectDisassemble::GetNameRanges(), CommandObjectSourceInfo::GetSymbolContextsForAddress(), CommandObjectFrameRecognizerDelete::HandleArgumentCompletion(), CommandObjectTargetModulesLookup::LookupHere(), and CommandObjectTargetModulesLookup::LookupInModule().

◆ HandleArgumentCompletion()

void CommandObject::HandleArgumentCompletion ( CompletionRequest request,
OptionElementVector opt_element_vector 
)
virtual

The default version handles argument definitions that have only one argument type, and use one of the argument types that have an entry in the CommonCompletions.

Override this if you have a more complex argument setup. FIXME: we should be able to extend this to more complex argument definitions provided we have completers for all the argument types.

The input array contains a parsed version of the line.

We've constructed the map of options and their arguments as well if that is helpful for the completion.

Parameters
[in,out]requestThe completion request that needs to be answered.

Reimplemented in lldb_private::CommandAlias, lldb_private::CommandObjectProxy, CommandObjectBreakpointModify, CommandObjectBreakpointEnable, CommandObjectBreakpointDisable, CommandObjectBreakpointDelete, CommandObjectBreakpointNameAdd, CommandObjectBreakpointNameDelete, CommandObjectBreakpointWrite, CommandObjectCommandsUnalias, CommandObjectCommandsDelete, CommandObjectPythonFunction, CommandObjectScriptingObjectRaw, CommandObjectCommandsScriptAdd, CommandObjectCommandsScriptDelete, CommandObjectCommandsContainerAdd, CommandObjectCommandsContainerDelete, CommandObjectFrameRecognizerDelete, CommandObjectLogEnable, CommandObjectLogDisable, CommandObjectLogList, CommandObjectLogDump, CommandObjectLogTimerIncrement, CommandObjectPlatformGetFile, CommandObjectPlatformPutFile, CommandObjectPlatformProcessLaunch, CommandObjectPlatformInstall, CommandObjectProcessLoad, CommandObjectProcessUnload, CommandObjectProcessSignal, CommandObjectRegisterRead, CommandObjectRegisterWrite, CommandObjectRegisterInfo, CommandObjectSettingsSet, CommandObjectSettingsList, CommandObjectSettingsRemove, CommandObjectSettingsReplace, CommandObjectSettingsInsertBefore, CommandObjectSettingsInsertAfter, CommandObjectSettingsAppend, CommandObjectSettingsClear, CommandObjectTargetModulesSearchPathsInsert, CommandObjectTargetModulesModuleAutoComplete, CommandObjectTargetModulesSourceFileAutoComplete, CommandObjectTargetStopHookDelete, CommandObjectTargetStopHookEnableDisable, CommandObjectThreadStepWithTypeAndScope, CommandObjectThreadSelect, CommandObjectThreadInfo, CommandObjectThreadException, CommandObjectThreadSiginfo, CommandObjectThreadPlanDiscard, CommandObjectTraceSave, CommandObjectTraceLoad, CommandObjectTypeFormatterDelete, CommandObjectTypeCategoryList, CommandObjectWatchpointEnable, CommandObjectWatchpointDisable, CommandObjectWatchpointDelete, CommandObjectWatchpointIgnore, and CommandObjectWatchpointModify.

Definition at line 308 of file CommandObject.cpp.

References lldb_private::CommandObject::ArgumentTableEntry::completion_type, lldb_private::eArgRepeatPlain, lldb::eNoCompletion, FindArgumentDataByType(), GetArgumentEntryAtIndex(), GetCommandInterpreter(), lldb_private::CompletionRequest::GetCursorIndex(), GetNumArgumentEntries(), and lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks().

Referenced by lldb_private::CommandObjectProxy::HandleArgumentCompletion(), CommandObjectProcessLoad::HandleArgumentCompletion(), CommandObjectRegisterRead::HandleArgumentCompletion(), CommandObjectRegisterInfo::HandleArgumentCompletion(), CommandObjectTargetStopHookDelete::HandleArgumentCompletion(), CommandObjectTargetStopHookEnableDisable::HandleArgumentCompletion(), CommandObjectThreadStepWithTypeAndScope::HandleArgumentCompletion(), and HandleCompletion().

◆ HandleCompletion()

void CommandObject::HandleCompletion ( CompletionRequest request)
virtual

◆ HasOverrideCallback()

bool lldb_private::CommandObject::HasOverrideCallback ( ) const
inline

◆ HelpTextContainsWord()

bool CommandObject::HelpTextContainsWord ( llvm::StringRef  search_word,
bool  search_short_help = true,
bool  search_long_help = true,
bool  search_syntax = true,
bool  search_options = true 
)

◆ InvokeOverrideCallback()

bool lldb_private::CommandObject::InvokeOverrideCallback ( const char **  argv,
CommandReturnObject result 
)
inline

◆ IsAlias()

virtual bool lldb_private::CommandObject::IsAlias ( )
inlinevirtual

◆ IsDashDashCommand()

virtual bool lldb_private::CommandObject::IsDashDashCommand ( )
inlinevirtual

◆ IsMultiwordObject()

virtual bool lldb_private::CommandObject::IsMultiwordObject ( )
inlinevirtual

◆ IsPairType()

bool CommandObject::IsPairType ( ArgumentRepetitionType  arg_repeat_type)
static

◆ IsRemovable()

virtual bool lldb_private::CommandObject::IsRemovable ( ) const
inlinevirtual

◆ IsUserCommand()

bool lldb_private::CommandObject::IsUserCommand ( )
inline

◆ LoadSubCommand()

virtual bool lldb_private::CommandObject::LoadSubCommand ( llvm::StringRef  cmd_name,
const lldb::CommandObjectSP command_obj 
)
inlinevirtual

◆ LoadUserSubcommand()

virtual llvm::Error lldb_private::CommandObject::LoadUserSubcommand ( llvm::StringRef  cmd_name,
const lldb::CommandObjectSP command_obj,
bool  can_replace 
)
inlinevirtual

Reimplemented in lldb_private::CommandObjectMultiword.

Definition at line 189 of file CommandObject.h.

◆ LookupArgumentName()

CommandArgumentType CommandObject::LookupArgumentName ( llvm::StringRef  arg_name)
static

◆ ParseOptions()

bool CommandObject::ParseOptions ( Args args,
CommandReturnObject result 
)

◆ ParseOptionsAndNotify()

bool CommandObject::ParseOptionsAndNotify ( Args args,
CommandReturnObject result,
OptionGroupOptions group_options,
ExecutionContext exe_ctx 
)
protected

◆ SetCommandName()

void CommandObject::SetCommandName ( llvm::StringRef  name)

◆ SetHelp()

void CommandObject::SetHelp ( llvm::StringRef  str)
virtual

◆ SetHelpLong()

void CommandObject::SetHelpLong ( llvm::StringRef  str)
virtual

Reimplemented in lldb_private::CommandAlias.

Definition at line 92 of file CommandObject.cpp.

References m_cmd_help_long.

Referenced by CommandObjectBreakpointCommandAdd::CommandObjectBreakpointCommandAdd(), CommandObjectBreakpointDisable::CommandObjectBreakpointDisable(), CommandObjectBreakpointName::CommandObjectBreakpointName(), CommandObjectCommandsAddRegex::CommandObjectCommandsAddRegex(), CommandObjectCommandsAlias::CommandObjectCommandsAlias(), lldb_private::CommandObjectExpression::CommandObjectExpression(), CommandObjectFrameRecognizerAdd::CommandObjectFrameRecognizerAdd(), CommandObjectFrameVariable::CommandObjectFrameVariable(), CommandObjectPlatformFileExists::CommandObjectPlatformFileExists(), CommandObjectPlatformGetFile::CommandObjectPlatformGetFile(), CommandObjectPlatformGetPermissions::CommandObjectPlatformGetPermissions(), CommandObjectPlatformGetSize::CommandObjectPlatformGetSize(), CommandObjectPlatformPutFile::CommandObjectPlatformPutFile(), CommandObjectProcessHandle::CommandObjectProcessHandle(), CommandObjectRegisterInfo::CommandObjectRegisterInfo(), CommandObjectSettingsSet::CommandObjectSettingsSet(), CommandObjectTargetStopHookAdd::CommandObjectTargetStopHookAdd(), CommandObjectTypeFormatAdd::CommandObjectTypeFormatAdd(), CommandObjectTypeFormatterDelete::CommandObjectTypeFormatterDelete(), CommandObjectTypeSummaryAdd::CommandObjectTypeSummaryAdd(), CommandObjectWatchpointCommandAdd::CommandObjectWatchpointCommandAdd(), CommandObjectPythonFunction::GetHelpLong(), CommandObjectScriptingObjectRaw::GetHelpLong(), CommandObjectScriptingObjectParsed::GetHelpLong(), and lldb_private::CommandAlias::SetHelpLong().

◆ SetIsUserCommand()

void lldb_private::CommandObject::SetIsUserCommand ( bool  is_user)
inline

Definition at line 150 of file CommandObject.h.

References m_is_user_command.

◆ SetOverrideCallback() [1/2]

void lldb_private::CommandObject::SetOverrideCallback ( lldb::CommandOverrideCallback  callback,
void *  baton 
)
inline

◆ SetOverrideCallback() [2/2]

void lldb_private::CommandObject::SetOverrideCallback ( lldb_private::CommandOverrideCallbackWithResult  callback,
void *  baton 
)
inline

Definition at line 326 of file CommandObject.h.

References m_command_override_baton, and m_command_override_callback.

◆ SetSyntax()

void CommandObject::SetSyntax ( llvm::StringRef  str)

◆ WantsCompletion()

virtual bool lldb_private::CommandObject::WantsCompletion ( )
inlinevirtual

◆ WantsRawCommandString()

virtual bool lldb_private::CommandObject::WantsRawCommandString ( )
pure virtual

Member Data Documentation

◆ m_api_locker

std::unique_lock<std::recursive_mutex> lldb_private::CommandObject::m_api_locker
protected

Definition at line 402 of file CommandObject.h.

Referenced by CheckRequirements(), and Cleanup().

◆ m_arguments

std::vector<CommandArgumentEntry> lldb_private::CommandObject::m_arguments
protected

Definition at line 408 of file CommandObject.h.

Referenced by AddIDsArgumentData(), AddSimpleArgumentList(), lldb_private::CommandAlias::CommandAlias(), CommandObjectLogDisable::CommandObjectLogDisable(), CommandObjectLogEnable::CommandObjectLogEnable(), CommandObjectMemoryFind::CommandObjectMemoryFind(), CommandObjectMemoryHistory::CommandObjectMemoryHistory(), CommandObjectMemoryRead::CommandObjectMemoryRead(), CommandObjectMemoryRegion::CommandObjectMemoryRegion(), CommandObjectMemoryTagRead::CommandObjectMemoryTagRead(), CommandObjectMemoryTagWrite::CommandObjectMemoryTagWrite(), CommandObjectPlatformInstall::CommandObjectPlatformInstall(), CommandObjectRegisterWrite::CommandObjectRegisterWrite(), CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed(), CommandObjectSettingsAppend::CommandObjectSettingsAppend(), CommandObjectSettingsInsertAfter::CommandObjectSettingsInsertAfter(), CommandObjectSettingsInsertBefore::CommandObjectSettingsInsertBefore(), CommandObjectSettingsList::CommandObjectSettingsList(), CommandObjectSettingsRemove::CommandObjectSettingsRemove(), CommandObjectSettingsReplace::CommandObjectSettingsReplace(), CommandObjectSettingsSet::CommandObjectSettingsSet(), CommandObjectTargetModulesSearchPathsAdd::CommandObjectTargetModulesSearchPathsAdd(), CommandObjectTargetModulesSearchPathsInsert::CommandObjectTargetModulesSearchPathsInsert(), CommandObjectThreadSelect::CommandObjectThreadSelect(), lldb_private::CommandPluginInterfaceImplementation::CommandPluginInterfaceImplementation(), lldb_private::CommandObjectParsed::Execute(), GetArgumentEntryAtIndex(), GetFormattedCommandArguments(), GetNumArgumentEntries(), and GetSyntax().

◆ m_cmd_help_long

std::string lldb_private::CommandObject::m_cmd_help_long
protected

◆ m_cmd_help_short

std::string lldb_private::CommandObject::m_cmd_help_short
protected

◆ m_cmd_name

std::string lldb_private::CommandObject::m_cmd_name
protected

◆ m_cmd_syntax

std::string lldb_private::CommandObject::m_cmd_syntax
protected

◆ m_command_override_baton

void* lldb_private::CommandObject::m_command_override_baton
protected

Definition at line 411 of file CommandObject.h.

Referenced by InvokeOverrideCallback(), and SetOverrideCallback().

◆ m_command_override_callback

lldb_private::CommandOverrideCallbackWithResult lldb_private::CommandObject::m_command_override_callback
protected

◆ m_deprecated_command_override_callback

lldb::CommandOverrideCallback lldb_private::CommandObject::m_deprecated_command_override_callback
protected

◆ m_exe_ctx

ExecutionContext lldb_private::CommandObject::m_exe_ctx
protected

Definition at line 401 of file CommandObject.h.

Referenced by CommandObjectTargetSymbolsAdd::AddSymbolsForFile(), CommandObjectTargetSymbolsAdd::AddSymbolsForFrame(), CommandObjectTargetSymbolsAdd::AddSymbolsForStack(), lldb_private::CommandObjectIterateOverThreads::BucketThread(), CheckRequirements(), Cleanup(), CommandObjectSourceList::DisplayFunctionSource(), CommandObjectScriptingObjectParsed::DoExecute(), CommandObjectPlatformProcessLaunch::DoExecute(), CommandObjectSettingsShow::DoExecute(), CommandObjectSettingsList::DoExecute(), CommandObjectTargetShowLaunchEnvironment::DoExecute(), CommandObjectTargetVariable::DoExecute(), CommandObjectTargetModulesLoad::DoExecute(), CommandObjectTargetSymbolsAdd::DoExecute(), CommandObjectThreadJump::DoExecute(), CommandObjectThreadPlanDiscard::DoExecute(), CommandObjectThreadPlanPrune::DoExecute(), CommandObjectTraceDumpFunctionCalls::DoExecute(), CommandObjectTraceDumpInstructions::DoExecute(), CommandObjectCommandsScriptImport::DoExecute(), lldb_private::CommandObjectDisassemble::DoExecute(), CommandObjectFrameDiagnose::DoExecute(), CommandObjectFrameInfo::DoExecute(), CommandObjectFrameSelect::DoExecute(), CommandObjectFrameVariable::DoExecute(), CommandObjectFrameRecognizerInfo::DoExecute(), CommandObjectMemoryRead::DoExecute(), CommandObjectMemoryFind::DoExecute(), CommandObjectMemoryWrite::DoExecute(), CommandObjectMemoryHistory::DoExecute(), CommandObjectMemoryRegion::DoExecute(), CommandObjectMemoryTagRead::DoExecute(), CommandObjectMemoryTagWrite::DoExecute(), CommandObjectProcessAttach::DoExecute(), CommandObjectProcessContinue::DoExecute(), CommandObjectProcessDetach::DoExecute(), CommandObjectProcessConnect::DoExecute(), CommandObjectProcessLoad::DoExecute(), CommandObjectProcessUnload::DoExecute(), CommandObjectProcessSignal::DoExecute(), CommandObjectProcessInterrupt::DoExecute(), CommandObjectProcessKill::DoExecute(), CommandObjectProcessSaveCore::DoExecute(), CommandObjectProcessStatus::DoExecute(), CommandObjectProcessTraceStop::DoExecute(), CommandObjectRegisterRead::DoExecute(), CommandObjectRegisterWrite::DoExecute(), CommandObjectRegisterInfo::DoExecute(), CommandObjectSettingsClear::DoExecute(), CommandObjectSourceList::DoExecute(), CommandObjectSourceCacheDump::DoExecute(), CommandObjectSourceCacheClear::DoExecute(), CommandObjectStatsDump::DoExecute(), CommandObjectTargetModulesDumpLineTable::DoExecute(), CommandObjectTargetModulesShowUnwind::DoExecute(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), CommandObjectThreadContinue::DoExecute(), CommandObjectThreadUntil::DoExecute(), CommandObjectThreadSelect::DoExecute(), CommandObjectThreadList::DoExecute(), CommandObjectThreadPlanList::DoExecute(), lldb_private::CommandObjectIterateOverThreads::DoExecute(), lldb_private::CommandObjectMultipleThreads::DoExecute(), CommandObjectTraceSave::DoExecute(), lldb_private::ctf::CommandObjectThreadTraceExportCTF::DoExecute(), CommandObjectProcessLaunch::DoExecute(), lldb_private::CommandObjectDWIMPrint::DoExecute(), CommandObjectSettingsRemove::DoExecute(), CommandObjectSettingsReplace::DoExecute(), CommandObjectSettingsInsertBefore::DoExecute(), CommandObjectSettingsInsertAfter::DoExecute(), CommandObjectSettingsAppend::DoExecute(), CommandObjectThreadReturn::DoExecute(), CommandObjectPythonFunction::DoExecute(), CommandObjectScriptingObjectRaw::DoExecute(), CommandObjectTraceStop::DoExecuteOnThreads(), CommandObjectTargetSymbolsAdd::DownloadObjectAndSymbolFile(), CommandObjectSourceInfo::DumpLinesForFrame(), lldb_private::CommandObjectDisassemble::GetCurrentFunctionRanges(), lldb_private::CommandObjectDisassemble::GetCurrentLineRanges(), CommandObjectBreakpointSet::GetDefaultFile(), GetDefaultThread(), lldb_private::CommandObjectDisassemble::GetPCRanges(), GetTarget(), CommandObjectProcessLoad::HandleArgumentCompletion(), CommandObjectProcessUnload::HandleArgumentCompletion(), CommandObjectProcessSignal::HandleArgumentCompletion(), CommandObjectRegisterRead::HandleArgumentCompletion(), CommandObjectRegisterWrite::HandleArgumentCompletion(), CommandObjectRegisterInfo::HandleArgumentCompletion(), CommandObjectTargetModulesSearchPathsInsert::HandleArgumentCompletion(), CommandObjectThreadPlanDiscard::HandleArgumentCompletion(), HandleCompletion(), CommandObjectThreadBacktrace::HandleOneThread(), CommandObjectThreadInfo::HandleOneThread(), CommandObjectThreadException::HandleOneThread(), CommandObjectThreadSiginfo::HandleOneThread(), CommandObjectThreadPlanList::HandleOneThread(), CommandObjectTraceDumpInfo::HandleOneThread(), and CommandObjectTargetModulesLookup::LookupHere().

◆ m_flags

Flags lldb_private::CommandObject::m_flags
protected

◆ m_interpreter

CommandInterpreter& lldb_private::CommandObject::m_interpreter
protected

Definition at line 400 of file CommandObject.h.

Referenced by CheckRequirements(), CommandObjectCommandsUnalias::DoExecute(), CommandObjectCommandsDelete::DoExecute(), CommandObjectPlatformSelect::DoExecute(), lldb_private::CommandObjectQuit::DoExecute(), CommandObjectSessionSave::DoExecute(), CommandObjectSettingsList::DoExecute(), CommandObjectTargetVariable::DoExecute(), lldb_private::CommandPluginInterfaceImplementation::DoExecute(), lldb_private::CommandObjectApropos::DoExecute(), CommandObjectBreakpointDelete::DoExecute(), CommandObjectCommandsSource::DoExecute(), CommandObjectCommandsScriptAdd::DoExecute(), CommandObjectCommandsScriptList::DoExecute(), CommandObjectCommandsScriptClear::DoExecute(), CommandObjectCommandsScriptDelete::DoExecute(), CommandObjectFrameVariable::DoExecute(), CommandObjectFrameRecognizerDelete::DoExecute(), lldb_private::CommandObjectHelp::DoExecute(), CommandObjectProcessAttach::DoExecute(), CommandObjectProcessContinue::DoExecute(), CommandObjectProcessConnect::DoExecute(), CommandObjectSessionHistory::DoExecute(), CommandObjectSettingsRead::DoExecute(), CommandObjectTargetModulesDumpSymtab::DoExecute(), CommandObjectTargetModulesDumpSections::DoExecute(), CommandObjectTargetModulesDumpLineTable::DoExecute(), CommandObjectTargetModulesLookup::DoExecute(), CommandObjectTargetStopHookDelete::DoExecute(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), CommandObjectThreadContinue::DoExecute(), CommandObjectThreadUntil::DoExecute(), CommandObjectProcessKDPPacketSend::DoExecute(), CommandObjectProcessHandle::DoExecute(), lldb_private::CommandObjectRegexCommand::DoExecute(), CommandObjectScriptingRun::DoExecute(), CommandObjectPythonFunction::DoExecute(), lldb_private::CommandObjectTraceProxy::DoGetProxyCommandObject(), lldb_private::CommandObjectParsed::Execute(), lldb_private::CommandObjectMultiword::GenerateHelpText(), GetCommandInterpreter(), GetDebugger(), GetDefaultThread(), CommandObjectBreakpointCommandAdd::CommandOptions::GetDefinitions(), CommandObjectProcessTraceStart::GetDelegateCommand(), CommandObjectTraceStart::GetDelegateCommand(), GetDummyTarget(), CommandObjectPlatformConnect::GetOptions(), CommandObjectProcessPlugin::GetProxyCommandObject(), GetTarget(), CommandObjectCommandsUnalias::HandleArgumentCompletion(), CommandObjectCommandsDelete::HandleArgumentCompletion(), CommandObjectCommandsScriptAdd::HandleArgumentCompletion(), CommandObjectCommandsScriptDelete::HandleArgumentCompletion(), CommandObjectCommandsContainerAdd::HandleArgumentCompletion(), CommandObjectCommandsContainerDelete::HandleArgumentCompletion(), HandleCompletion(), lldb_private::CommandObjectHelp::HandleCompletion(), CommandObjectCommandsScriptAdd::IOHandlerInputComplete(), CommandObjectTargetModulesLookup::LookupHere(), CommandObjectTargetModulesLookup::LookupInModule(), lldb_private::CommandObjectQuit::ShouldAskForConfirmation(), and CommandObjectProcessLaunchOrAttach::StopProcessIfNecessary().

◆ m_is_user_command

bool lldb_private::CommandObject::m_is_user_command = false
protected

Definition at line 412 of file CommandObject.h.

Referenced by IsUserCommand(), and SetIsUserCommand().


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