[Lldb-commits] [lldb] r190361 - <rdar://problem/14728845>
Enrico Granata
egranata at apple.com
Mon Sep 9 15:35:18 PDT 2013
Author: enrico
Date: Mon Sep 9 17:35:18 2013
New Revision: 190361
URL: http://llvm.org/viewvc/llvm-project?rev=190361&view=rev
Log:
<rdar://problem/14728845>
Making the --timeout (-t) option to "platform shell" work for real
Modified:
lldb/trunk/source/Commands/CommandObjectPlatform.cpp
Modified: lldb/trunk/source/Commands/CommandObjectPlatform.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectPlatform.cpp?rev=190361&r1=190360&r2=190361&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectPlatform.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectPlatform.cpp Mon Sep 9 17:35:18 2013
@@ -531,7 +531,7 @@ class CommandObjectPlatformMkDir : publi
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
More information about the lldb-commits
mailing list