keith created this revision. keith added a reviewer: kastiglione. keith requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. Herald added a subscriber: JDevlieghere.
Previously it was not clear what arguments this required, or what it would do if you didn't pass the destination argument. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D110981 Files: lldb/source/Commands/CommandObjectPlatform.cpp Index: lldb/source/Commands/CommandObjectPlatform.cpp =================================================================== --- lldb/source/Commands/CommandObjectPlatform.cpp +++ lldb/source/Commands/CommandObjectPlatform.cpp @@ -1067,7 +1067,16 @@ CommandObjectPlatformPutFile(CommandInterpreter &interpreter) : CommandObjectParsed( interpreter, "platform put-file", - "Transfer a file from this system to the remote end.", nullptr, 0) { + "Transfer a file from this system to the remote end.", + "platform put-file <source> [<destination>]", 0) { + SetHelpLong( + R"(Examples: + +(lldb) platform put-file /source/foo.txt /destination/bar.txt + +(lldb) platform put-file /source/foo.txt + + Omitting the destination places the file in the debuggers current working directory.)"); } ~CommandObjectPlatformPutFile() override = default;
Index: lldb/source/Commands/CommandObjectPlatform.cpp =================================================================== --- lldb/source/Commands/CommandObjectPlatform.cpp +++ lldb/source/Commands/CommandObjectPlatform.cpp @@ -1067,7 +1067,16 @@ CommandObjectPlatformPutFile(CommandInterpreter &interpreter) : CommandObjectParsed( interpreter, "platform put-file", - "Transfer a file from this system to the remote end.", nullptr, 0) { + "Transfer a file from this system to the remote end.", + "platform put-file <source> [<destination>]", 0) { + SetHelpLong( + R"(Examples: + +(lldb) platform put-file /source/foo.txt /destination/bar.txt + +(lldb) platform put-file /source/foo.txt + + Omitting the destination places the file in the debuggers current working directory.)"); } ~CommandObjectPlatformPutFile() override = default;
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits