mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
[lldb][NFC] Tablegenify process
llvm-svn: 366804
This commit is contained in:
@@ -256,14 +256,8 @@ protected:
|
||||
};
|
||||
|
||||
static constexpr OptionDefinition g_process_attach_options[] = {
|
||||
// clang-format off
|
||||
{ LLDB_OPT_SET_ALL, false, "continue", 'c', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Immediately continue the process once attached." },
|
||||
{ LLDB_OPT_SET_ALL, false, "plugin", 'P', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypePlugin, "Name of the process plugin you want to use." },
|
||||
{ LLDB_OPT_SET_1, false, "pid", 'p', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypePid, "The process ID of an existing process to attach to." },
|
||||
{ LLDB_OPT_SET_2, false, "name", 'n', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeProcessName, "The name of the process to attach to." },
|
||||
{ LLDB_OPT_SET_2, false, "include-existing", 'i', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Include existing processes when doing attach -w." },
|
||||
{ LLDB_OPT_SET_2, false, "waitfor", 'w', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Wait for the process with <process-name> to launch." },
|
||||
// clang-format on
|
||||
#define LLDB_OPTIONS_process_attach
|
||||
#include "CommandOptions.inc"
|
||||
};
|
||||
|
||||
#pragma mark CommandObjectProcessAttach
|
||||
@@ -506,9 +500,8 @@ protected:
|
||||
// CommandObjectProcessContinue
|
||||
|
||||
static constexpr OptionDefinition g_process_continue_options[] = {
|
||||
// clang-format off
|
||||
{ LLDB_OPT_SET_ALL, false, "ignore-count",'i', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeUnsignedInteger, "Ignore <N> crossings of the breakpoint (if it exists) for the currently selected thread." }
|
||||
// clang-format on
|
||||
#define LLDB_OPTIONS_process_continue
|
||||
#include "CommandOptions.inc"
|
||||
};
|
||||
|
||||
#pragma mark CommandObjectProcessContinue
|
||||
@@ -667,9 +660,8 @@ protected:
|
||||
|
||||
// CommandObjectProcessDetach
|
||||
static constexpr OptionDefinition g_process_detach_options[] = {
|
||||
// clang-format off
|
||||
{ LLDB_OPT_SET_1, false, "keep-stopped", 's', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Whether or not the process should be kept stopped on detach (if possible)." },
|
||||
// clang-format on
|
||||
#define LLDB_OPTIONS_process_detach
|
||||
#include "CommandOptions.inc"
|
||||
};
|
||||
|
||||
#pragma mark CommandObjectProcessDetach
|
||||
@@ -764,9 +756,8 @@ protected:
|
||||
// CommandObjectProcessConnect
|
||||
|
||||
static constexpr OptionDefinition g_process_connect_options[] = {
|
||||
// clang-format off
|
||||
{ LLDB_OPT_SET_ALL, false, "plugin", 'p', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypePlugin, "Name of the process plugin you want to use." },
|
||||
// clang-format on
|
||||
#define LLDB_OPTIONS_process_connect
|
||||
#include "CommandOptions.inc"
|
||||
};
|
||||
|
||||
#pragma mark CommandObjectProcessConnect
|
||||
@@ -889,9 +880,8 @@ public:
|
||||
// CommandObjectProcessLoad
|
||||
|
||||
static constexpr OptionDefinition g_process_load_options[] = {
|
||||
// clang-format off
|
||||
{ LLDB_OPT_SET_ALL, false, "install", 'i', OptionParser::eOptionalArgument, nullptr, {}, 0, eArgTypePath, "Install the shared library to the target. If specified without an argument then the library will installed in the current working directory." },
|
||||
// clang-format on
|
||||
#define LLDB_OPTIONS_process_load
|
||||
#include "CommandOptions.inc"
|
||||
};
|
||||
|
||||
#pragma mark CommandObjectProcessLoad
|
||||
@@ -1273,11 +1263,8 @@ public:
|
||||
// CommandObjectProcessHandle
|
||||
|
||||
static constexpr OptionDefinition g_process_handle_options[] = {
|
||||
// clang-format off
|
||||
{ LLDB_OPT_SET_1, false, "stop", 's', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Whether or not the process should be stopped if the signal is received." },
|
||||
{ LLDB_OPT_SET_1, false, "notify", 'n', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Whether or not the debugger should notify the user if the signal is received." },
|
||||
{ LLDB_OPT_SET_1, false, "pass", 'p', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeBoolean, "Whether or not the signal should be passed to the process." }
|
||||
// clang-format on
|
||||
#define LLDB_OPTIONS_process_handle
|
||||
#include "CommandOptions.inc"
|
||||
};
|
||||
|
||||
#pragma mark CommandObjectProcessHandle
|
||||
|
||||
Reference in New Issue
Block a user