LLDB  mainline
Classes | Functions | Variables
CommandObjectCommands.cpp File Reference
#include "llvm/ADT/StringRef.h"
#include "CommandObjectCommands.h"
#include "CommandObjectHelp.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/IOHandler.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandHistory.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandObjectRegexCommand.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/Interpreter/OptionValueBoolean.h"
#include "lldb/Interpreter/OptionValueString.h"
#include "lldb/Interpreter/OptionValueUInt64.h"
#include "lldb/Interpreter/Options.h"
#include "lldb/Interpreter/ScriptInterpreter.h"
#include "lldb/Utility/Args.h"
#include "lldb/Utility/StringList.h"
Include dependency graph for CommandObjectCommands.cpp:

Go to the source code of this file.

Classes

class  CommandObjectCommandsHistory
 
class  CommandObjectCommandsHistory::CommandOptions
 
class  CommandObjectCommandsSource
 
class  CommandObjectCommandsSource::CommandOptions
 
class  CommandObjectCommandsAlias
 
class  CommandObjectCommandsAlias::CommandOptions
 
class  CommandObjectCommandsUnalias
 
class  CommandObjectCommandsDelete
 
class  CommandObjectCommandsAddRegex
 
class  CommandObjectPythonFunction
 
class  CommandObjectScriptingObject
 
class  CommandObjectCommandsScriptImport
 
class  CommandObjectCommandsScriptImport::CommandOptions
 
class  CommandObjectCommandsScriptAdd
 
class  CommandObjectCommandsScriptAdd::CommandOptions
 
class  CommandObjectCommandsScriptList
 
class  CommandObjectCommandsScriptClear
 
class  CommandObjectCommandsScriptDelete
 
class  CommandObjectMultiwordCommandsScript
 

Functions

static constexpr OptionEnumValues ScriptSynchroType ()
 

Variables

static constexpr OptionDefinition g_history_options []
 
static constexpr OptionDefinition g_source_options []
 
static constexpr OptionDefinition g_alias_options []
 
static const char * g_python_command_instructions
 
static constexpr OptionDefinition g_regex_options []
 
static constexpr OptionDefinition g_script_import_options []
 
static constexpr OptionEnumValueElement g_script_synchro_type []
 
static constexpr OptionDefinition g_script_add_options []
 

Function Documentation

◆ ScriptSynchroType()

static constexpr OptionEnumValues ScriptSynchroType ( )
static

Definition at line 1518 of file CommandObjectCommands.cpp.

References g_script_synchro_type.

Variable Documentation

◆ g_alias_options

constexpr OptionDefinition g_alias_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_ALL, false, "help", 'h', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeHelpText, "Help text for this command" },
{ LLDB_OPT_SET_ALL, false, "long-help", 'H', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeHelpText, "Long help text for this command" },
}
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110

Definition at line 345 of file CommandObjectCommands.cpp.

Referenced by CommandObjectCommandsAlias::CommandOptions::GetDefinitions().

◆ g_history_options

constexpr OptionDefinition g_history_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_1, false, "count", 'c', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeUnsignedInteger, "How many history commands to print." },
{ LLDB_OPT_SET_1, false, "start-index", 's', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeUnsignedInteger, "Index at which to start printing history commands (or end to mean tail mode)." },
{ LLDB_OPT_SET_1, false, "end-index", 'e', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeUnsignedInteger, "Index at which to stop printing history commands." },
{ LLDB_OPT_SET_2, false, "clear", 'C', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeBoolean, "Clears the current command history." },
}
#define LLDB_OPT_SET_2
Definition: lldb-defines.h:112
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 34 of file CommandObjectCommands.cpp.

Referenced by CommandObjectCommandsHistory::CommandOptions::GetDefinitions().

◆ g_python_command_instructions

const char* g_python_command_instructions
static
Initial value:
=
"Enter your Python command(s). Type 'DONE' to end.\n"
"You must define a Python function with this signature:\n"
"def my_command_impl(debugger, args, result, internal_dict):\n"

Definition at line 352 of file CommandObjectCommands.cpp.

Referenced by CommandObjectCommandsScriptAdd::IOHandlerActivated().

◆ g_regex_options

constexpr OptionDefinition g_regex_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_1, false, "help" , 'h', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeNone, "The help text to display for this command." },
{ LLDB_OPT_SET_1, false, "syntax", 's', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeNone, "A syntax string showing the typical usage syntax." },
}
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 913 of file CommandObjectCommands.cpp.

Referenced by CommandObjectCommandsAddRegex::AddRegexCommandToInterpreter().

◆ g_script_add_options

constexpr OptionDefinition g_script_add_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_1, false, "function", 'f', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypePythonFunction, "Name of the Python function to bind to this command name." },
{ LLDB_OPT_SET_2, false, "class", 'c', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypePythonClass, "Name of the Python class to bind to this command name." },
{ LLDB_OPT_SET_1, false, "help" , 'h', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeHelpText, "The help text to display for this command." },
{ LLDB_OPT_SET_ALL, false, "synchronicity", 's', OptionParser::eRequiredArgument, nullptr, ScriptSynchroType(), 0, eArgTypeScriptedCommandSynchronicity, "Set the synchronicity of this command's executions with regard to LLDB event system." },
}
static constexpr OptionEnumValues ScriptSynchroType()
#define LLDB_OPT_SET_2
Definition: lldb-defines.h:112
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 1522 of file CommandObjectCommands.cpp.

Referenced by CommandObjectCommandsScriptAdd::CommandOptions::GetDefinitions().

◆ g_script_import_options

constexpr OptionDefinition g_script_import_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_1, false, "allow-reload", 'r', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Allow the script to be loaded even if it was already loaded before. This argument exists for backwards compatibility, but reloading is always allowed, whether you specify it or not." },
}
#define LLDB_OPT_SET_1
Definition: lldb-defines.h:111

Definition at line 1388 of file CommandObjectCommands.cpp.

Referenced by CommandObjectCommandsScriptImport::CommandOptions::GetDefinitions().

◆ g_script_synchro_type

constexpr OptionEnumValueElement g_script_synchro_type[]
static

◆ g_source_options

constexpr OptionDefinition g_source_options[]
static
Initial value:
= {
{ LLDB_OPT_SET_ALL, false, "stop-on-error", 'e', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "If true, stop executing commands on error." },
{ LLDB_OPT_SET_ALL, false, "stop-on-continue", 'c', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "If true, stop executing commands on continue." },
{ LLDB_OPT_SET_ALL, false, "silent-run", 's', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "If true don't echo commands while executing." },
}
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110

Definition at line 191 of file CommandObjectCommands.cpp.

Referenced by CommandObjectCommandsSource::CommandOptions::GetDefinitions().