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

llvm-svn: 237831
This commit is contained in:
Chaoren Lin 2015-05-20 20:23:23 +00:00
parent 79009f88b4
commit 2bf454021c
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{