[Lldb-commits] [lldb] r154598 - in /lldb/branches/lldb-platform-work/source: Commands/CommandObjectPlatform.cpp Plugins/Platform/POSIX/PlatformPOSIX.cpp

Johnny Chen johnny.chen at apple.com
Thu Apr 12 11:19:54 PDT 2012


Author: johnny
Date: Thu Apr 12 13:19:54 2012
New Revision: 154598

URL: http://llvm.org/viewvc/llvm-project?rev=154598&view=rev
Log:
Correct help text of 'platform connect' and 'platform get-file' commands.

Modified:
    lldb/branches/lldb-platform-work/source/Commands/CommandObjectPlatform.cpp
    lldb/branches/lldb-platform-work/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp

Modified: lldb/branches/lldb-platform-work/source/Commands/CommandObjectPlatform.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/source/Commands/CommandObjectPlatform.cpp?rev=154598&r1=154597&r2=154598&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/source/Commands/CommandObjectPlatform.cpp (original)
+++ lldb/branches/lldb-platform-work/source/Commands/CommandObjectPlatform.cpp Thu Apr 12 13:19:54 2012
@@ -640,7 +640,7 @@
     CommandObjectPlatformGetFile (CommandInterpreter &interpreter) :
     CommandObject (interpreter,
                    "platform get-file",
-                   "Upload a file from the remote end into the local host.",
+                   "Transfer a file from the remote end into the local host.",
                    NULL,
                    0)
     {
@@ -648,7 +648,7 @@
 "Examples: \n\
 \n\
     platform get-file /the/remote/file/path /the/local/file/path\n\
-    # Upload a file from the remote end with file path /the/remote/file/path to the local host.\n");
+    # Transfer a file from the remote end with file path /the/remote/file/path to the local host.\n");
 
         CommandArgumentEntry arg1, arg2;
         CommandArgumentData file_arg_remote, file_arg_host;

Modified: lldb/branches/lldb-platform-work/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp?rev=154598&r1=154597&r2=154598&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp (original)
+++ lldb/branches/lldb-platform-work/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp Thu Apr 12 13:19:54 2012
@@ -106,10 +106,10 @@
 PlatformPOSIX::POSIXPlatformConnectionOptions::g_option_table[] =
 {
     {   LLDB_OPT_SET_ALL, false, "rsync"            , 'r', no_argument,       NULL, 0, eArgTypeNone         , "Enable rsync." },
-    {   LLDB_OPT_SET_ALL, false, "rsync-args"       , 'R', required_argument, NULL, 0, eArgTypeCommandName  , "Platform-specific arguments required for rsync to work." },
+    {   LLDB_OPT_SET_ALL, false, "rsync-opts"       , 'R', required_argument, NULL, 0, eArgTypeCommandName  , "Platform-specific options required for rsync to work." },
     {   LLDB_OPT_SET_ALL, false, "ssh"              , 's', no_argument,       NULL, 0, eArgTypeNone         , "Enable SSH." },
-    {   LLDB_OPT_SET_ALL, false, "ssh-args"         , 'S', required_argument, NULL, 0, eArgTypeCommandName  , "Platform-specific arguments required for SSH to work." },
-    {  0              , false, NULL               ,  0 , 0                , NULL, 0, eArgTypeNone         , NULL }
+    {   LLDB_OPT_SET_ALL, false, "ssh-opts"         , 'S', required_argument, NULL, 0, eArgTypeCommandName  , "Platform-specific options required for SSH to work." },
+    {   0,                false, NULL               ,  0 , 0                , NULL, 0, eArgTypeNone         , NULL }
 };
 
 Options *
@@ -371,7 +371,7 @@
                            GetHostname(),
                            src_path.c_str(),
                            dst_path.c_str());
-            //printf("Running command: %s\n", command.GetData());
+            printf("Running command: %s\n", command.GetData());
             if (RunShellCommand(command.GetData()) == 0)
                 return Error();
             // If we are here, rsync has failed - let's try the slow way before giving up





More information about the lldb-commits mailing list