diff options
author | Caroline Tice <ctice@apple.com> | 2010-10-04 22:28:36 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-10-04 22:28:36 +0000 |
commit | 405fe67f1424284173459575b1081f42935c50fd (patch) | |
tree | 5110616e8a6ebcd9138f08209dbacf041b50a37a /lldb/source/Commands/CommandObjectImage.cpp | |
parent | 3703ff41632ea5f5749f35fe380edc8872f34d6d (diff) | |
download | bcm5719-llvm-405fe67f1424284173459575b1081f42935c50fd.tar.gz bcm5719-llvm-405fe67f1424284173459575b1081f42935c50fd.zip |
Modify existing commands with arguments to use the new argument mechanism
(for standardized argument names, argument help, etc.)
llvm-svn: 115570
Diffstat (limited to 'lldb/source/Commands/CommandObjectImage.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectImage.cpp | 48 |
1 files changed, 43 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectImage.cpp b/lldb/source/Commands/CommandObjectImage.cpp index b8c92ae123b..b2ecef23966 100644 --- a/lldb/source/Commands/CommandObjectImage.cpp +++ b/lldb/source/Commands/CommandObjectImage.cpp @@ -482,6 +482,18 @@ public: const char *syntax) : CommandObject (interpreter, name, help, syntax) { + CommandArgumentEntry arg; + CommandArgumentData file_arg; + + // Define the first (and only) variant of this arg. + file_arg.arg_type = eArgTypeFilename; + file_arg.arg_repetition = eArgRepeatStar; + + // There is only one variant this argument could be; put it into the argument entry. + arg.push_back (file_arg); + + // Push the data for the first argument into the m_arguments vector. + m_arguments.push_back (arg); } virtual @@ -525,6 +537,18 @@ public: const char *syntax) : CommandObject (interpreter, name, help, syntax) { + CommandArgumentEntry arg; + CommandArgumentData source_file_arg; + + // Define the first (and only) variant of this arg. + source_file_arg.arg_type = eArgTypeSourceFile; + source_file_arg.arg_repetition = eArgRepeatPlus; + + // There is only one variant this argument could be; put it into the argument entry. + arg.push_back (source_file_arg); + + // Push the data for the first argument into the m_arguments vector. + m_arguments.push_back (arg); } virtual @@ -566,7 +590,7 @@ public: CommandObjectImageDumpModuleList (interpreter, "image dump symtab", "Dump the symbol table from one or more executable images.", - "image dump symtab [<file1> ...]") + NULL) { } @@ -674,7 +698,8 @@ public: CommandObjectImageDumpModuleList (interpreter, "image dump sections", "Dump the sections from one or more executable images.", - "image dump sections [<file1> ...]") + //"image dump sections [<file1> ...]") + NULL) { } @@ -781,7 +806,8 @@ public: CommandObjectImageDumpModuleList (interpreter, "image dump symfile", "Dump the debug symbol file for one or more executable images.", - "image dump symfile [<file1> ...]") + //"image dump symfile [<file1> ...]") + NULL) { } @@ -888,7 +914,7 @@ public: CommandObjectImageDumpSourceFileList (interpreter, "image dump line-table", "Dump the debug symbol file for one or more executable images.", - "image dump line-table <source-file1> [<source-file2> ...]") + NULL) { } @@ -1326,8 +1352,20 @@ public: CommandObject (interpreter, "image lookup", "Look up information within executable and dependent shared library images.", - "image lookup [<cmd-options>] [<file1>...]") + NULL) { + CommandArgumentEntry arg; + CommandArgumentData file_arg; + + // Define the first (and only) variant of this arg. + file_arg.arg_type = eArgTypeFilename; + file_arg.arg_repetition = eArgRepeatStar; + + // There is only one variant this argument could be; put it into the argument entry. + arg.push_back (file_arg); + + // Push the data for the first argument into the m_arguments vector. + m_arguments.push_back (arg); } virtual |