diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-05-20 20:23:23 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-05-20 20:23:23 +0000 |
commit | 2bf454021cfe24aefc04604927d6b049eb7c14ab (patch) | |
tree | 875184698b37f7e88cb4eae8d0d2a3b9c9280555 /lldb/source/Commands | |
parent | 79009f88b4b0212222986969a6c0f023436cb6e3 (diff) | |
download | bcm5719-llvm-2bf454021cfe24aefc04604927d6b049eb7c14ab.tar.gz bcm5719-llvm-2bf454021cfe24aefc04604927d6b049eb7c14ab.zip |
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
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index b231c4af834..f62a002f750 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -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) { |