[Lldb-commits] [lldb] r237831 - Default dst value for platform put-file.
Chaoren Lin
chaorenl at google.com
Wed May 20 13:23:23 PDT 2015
Author: chaoren
Date: Wed May 20 15:23:23 2015
New Revision: 237831
URL: http://llvm.org/viewvc/llvm-project?rev=237831&view=rev
Log:
Default dst value for platform put-file.
Summary: It should default to working-dir/src-filename if dst is not specified.
Reviewers: clayborg, flackr
Reviewed By: flackr
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D9890
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=237831&r1=237830&r2=237831&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectPlatform.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectPlatform.cpp Wed May 20 15:23:23 2015
@@ -1238,8 +1238,8 @@ public:
const char* dst = args.GetArgumentAtIndex(1);
FileSpec src_fs(src, true);
- FileSpec dst_fs(dst, false);
-
+ FileSpec dst_fs(dst ? dst : src_fs.GetFilename().GetCString(), false);
+
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
if (platform_sp)
{
More information about the lldb-commits
mailing list