diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-07-25 11:22:46 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-07-25 11:22:46 +0000 |
| commit | ec67e73430889882861fb21a193f57cdf2c3a1d2 (patch) | |
| tree | a478d3d8a15effc4597b03bb67a1a0d3c444408b /lldb/source/Commands/CommandObjectMemory.cpp | |
| parent | 88ed70e24705eacb3e5c3675f78342f197b53cb5 (diff) | |
| download | bcm5719-llvm-ec67e73430889882861fb21a193f57cdf2c3a1d2.tar.gz bcm5719-llvm-ec67e73430889882861fb21a193f57cdf2c3a1d2.zip | |
[lldb] Tablegenify expr/frame/log/register/memory
llvm-svn: 367009
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
| -rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 1afcac71318..7409915665f 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -47,18 +47,8 @@ using namespace lldb; using namespace lldb_private; static constexpr OptionDefinition g_read_memory_options[] = { - // clang-format off - {LLDB_OPT_SET_1, false, "num-per-line", 'l', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeNumberPerLine, "The number of items per line to display." }, - {LLDB_OPT_SET_2, false, "binary", 'b', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "If true, memory will be saved as binary. If false, the memory is saved save as an ASCII dump that " - "uses the format, size, count and number per line settings." }, - {LLDB_OPT_SET_3 | - LLDB_OPT_SET_4, true , "type", 't', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeName, "The name of a type to view memory as." }, - {LLDB_OPT_SET_4, false, "language", 'x', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeLanguage, "The language of the type to view memory as."}, - {LLDB_OPT_SET_3, false, "offset", 'E', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeCount, "How many elements of the specified type to skip before starting to display data." }, - {LLDB_OPT_SET_1 | - LLDB_OPT_SET_2 | - LLDB_OPT_SET_3, false, "force", 'r', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Necessary if reading over target.max-memory-read-size bytes." }, - // clang-format on +#define LLDB_OPTIONS_memory_read +#include "CommandOptions.inc" }; class OptionGroupReadMemory : public OptionGroup { @@ -907,12 +897,8 @@ protected: }; static constexpr OptionDefinition g_memory_find_option_table[] = { - // clang-format off - {LLDB_OPT_SET_1, true, "expression", 'e', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeExpression, "Evaluate an expression to obtain a byte pattern."}, - {LLDB_OPT_SET_2, true, "string", 's', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeName, "Use text to find a byte pattern."}, - {LLDB_OPT_SET_ALL, false, "count", 'c', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeCount, "How many times to perform the search."}, - {LLDB_OPT_SET_ALL, false, "dump-offset", 'o', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeOffset, "When dumping memory for a match, an offset from the match location to start dumping from."}, - // clang-format on +#define LLDB_OPTIONS_memory_find +#include "CommandOptions.inc" }; // Find the specified data in memory @@ -1204,10 +1190,8 @@ protected: }; static constexpr OptionDefinition g_memory_write_option_table[] = { - // clang-format off - {LLDB_OPT_SET_1, true, "infile", 'i', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeFilename, "Write memory using the contents of a file."}, - {LLDB_OPT_SET_1, false, "offset", 'o', OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeOffset, "Start writing bytes from an offset within the input file."}, - // clang-format on +#define LLDB_OPTIONS_memory_write +#include "CommandOptions.inc" }; // Write memory to the inferior process |

