summaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-07-25 11:22:46 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-07-25 11:22:46 +0000
commitec67e73430889882861fb21a193f57cdf2c3a1d2 (patch)
treea478d3d8a15effc4597b03bb67a1a0d3c444408b /lldb/source/Commands/CommandObjectFrame.cpp
parent88ed70e24705eacb3e5c3675f78342f197b53cb5 (diff)
[lldb] Tablegenify expr/frame/log/register/memory
llvm-svn: 367009
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index c6bf6da6a7f2..8cd5962c0f7b 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -54,11 +54,8 @@ using namespace lldb_private;
// CommandObjectFrameDiagnose
static constexpr OptionDefinition g_frame_diag_options[] = {
- // clang-format off
- { LLDB_OPT_SET_1, false, "register", 'r', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeRegisterName, "A register to diagnose." },
- { LLDB_OPT_SET_1, false, "address", 'a', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeAddress, "An address to diagnose." },
- { LLDB_OPT_SET_1, false, "offset", 'o', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeOffset, "An optional offset. Requires --register." }
- // clang-format on
+#define LLDB_OPTIONS_frame_diag
+#include "CommandOptions.inc"
};
class CommandObjectFrameDiagnose : public CommandObjectParsed {
@@ -238,9 +235,8 @@ protected:
// CommandObjectFrameSelect
static OptionDefinition g_frame_select_options[] = {
- // clang-format off
- { LLDB_OPT_SET_1, false, "relative", 'r', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeOffset, "A relative frame index offset from the current frame index." },
- // clang-format on
+#define LLDB_OPTIONS_frame_select
+#include "CommandOptions.inc"
};
class CommandObjectFrameSelect : public CommandObjectParsed {
@@ -744,12 +740,8 @@ protected:
#pragma mark CommandObjectFrameRecognizer
static OptionDefinition g_frame_recognizer_add_options[] = {
- // clang-format off
- { LLDB_OPT_SET_ALL, false, "shlib", 's', OptionParser::eRequiredArgument, nullptr, {}, CommandCompletions::eModuleCompletion, eArgTypeShlibName, "Name of the module or shared library that this recognizer applies to." },
- { LLDB_OPT_SET_ALL, false, "function", 'n', OptionParser::eRequiredArgument, nullptr, {}, CommandCompletions::eSymbolCompletion, eArgTypeName, "Name of the function that this recognizer applies to." },
- { LLDB_OPT_SET_2, false, "python-class", 'l', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypePythonClass, "Give the name of a Python class to use for this frame recognizer." },
- { LLDB_OPT_SET_ALL, false, "regex", 'x', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Function name and module name are actually regular expressions." }
- // clang-format on
+#define LLDB_OPTIONS_frame_recognizer_add
+#include "CommandOptions.inc"
};
class CommandObjectFrameRecognizerAdd : public CommandObjectParsed {