diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-07-23 12:54:33 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-07-23 12:54:33 +0000 |
commit | 438dfcffe96f6a2bbc8c34331dd6bd3850903165 (patch) | |
tree | 80f43fe5d818bec0b15d7ea83757be71200463aa /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | c4c25e11b1be643b5a95d842f4c24e913e0a201b (diff) | |
download | bcm5719-llvm-438dfcffe96f6a2bbc8c34331dd6bd3850903165.tar.gz bcm5719-llvm-438dfcffe96f6a2bbc8c34331dd6bd3850903165.zip |
[lldb][NFC] Tablegenify process
llvm-svn: 366804
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index b20a2d53333..72286028a04 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -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 |