forked from OSchip/llvm-project
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:
parent
79009f88b4
commit
2bf454021c
|
@ -1238,8 +1238,8 @@ public:
|
||||||
const char* dst = args.GetArgumentAtIndex(1);
|
const char* dst = args.GetArgumentAtIndex(1);
|
||||||
|
|
||||||
FileSpec src_fs(src, true);
|
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());
|
PlatformSP platform_sp (m_interpreter.GetDebugger().GetPlatformList().GetSelectedPlatform());
|
||||||
if (platform_sp)
|
if (platform_sp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue