diff options
author | Enrico Granata <egranata@apple.com> | 2013-09-09 22:35:18 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-09-09 22:35:18 +0000 |
commit | fff258976de026b9b6b98340ca0950fc9d9c23bb (patch) | |
tree | e1a8f9e9f27ac2effff49e212f3fbca901e28425 /lldb/source/Commands/CommandObjectPlatform.cpp | |
parent | e1f7bf2c02be1c2331304df4473522c87c5c485d (diff) | |
download | llvm-fff258976de026b9b6b98340ca0950fc9d9c23bb.zip llvm-fff258976de026b9b6b98340ca0950fc9d9c23bb.tar.gz llvm-fff258976de026b9b6b98340ca0950fc9d9c23bb.tar.bz2 |
<rdar://problem/14728845>
Making the --timeout (-t) option to "platform shell" work for real
llvm-svn: 190361
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index 6a43505..ace1ef5 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -531,7 +531,7 @@ class CommandObjectPlatformMkDir : public CommandObjectParsed public: CommandObjectPlatformMkDir (CommandInterpreter &interpreter) : CommandObjectParsed (interpreter, - "platform shell", + "platform mkdir", "Make a new directory on the remote end.", NULL, 0), @@ -2023,9 +2023,18 @@ public: { } + virtual + Options * + GetOptions () + { + return &m_options; + } + virtual bool DoExecute (const char *raw_command_line, CommandReturnObject &result) { + m_options.NotifyOptionParsingStarting(); + const char* expr = NULL; // Print out an usage syntax on an empty command line. @@ -2117,6 +2126,7 @@ OptionDefinition CommandObjectPlatformShell::CommandOptions::g_option_table[] = { { LLDB_OPT_SET_ALL, false, "timeout", 't', OptionParser::eRequiredArgument, NULL, 0, eArgTypeValue, "Seconds to wait for the remote host to finish running the command."}, + { 0, false, NULL, 0, 0, NULL, 0, eArgTypeNone, NULL } }; struct RecurseCopyBaton |