summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-05-09 01:21:32 +0000
committerChaoren Lin <chaorenl@google.com>2015-05-09 01:21:32 +0000
commitf34f410e0aa9bbcd6917ef12bcda3f4ea2ec38dd (patch)
tree2d28377c4d2e4c7d91ff9403a397cce0e08b720f /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parentf5132e70cc0516c5729476f323c014d394de365f (diff)
downloadbcm5719-llvm-f34f410e0aa9bbcd6917ef12bcda3f4ea2ec38dd.tar.gz
bcm5719-llvm-f34f410e0aa9bbcd6917ef12bcda3f4ea2ec38dd.zip
Set path syntax for remote executable FileSpec.
Reviewers: ovyalov, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9579 llvm-svn: 236925
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index de382ac3607..07c51dc5c02 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -1312,7 +1312,7 @@ GDBRemoteCommunicationClient::SendArgumentsPacket (const ProcessLaunchInfo &laun
const char *arg = NULL;
const Args &launch_args = launch_info.GetArguments();
if (exe_file)
- exe_path = exe_file.GetPath(false);
+ exe_path = exe_file.GetPath();
else
{
arg = launch_args.GetArgumentAtIndex(0);
@@ -3744,8 +3744,8 @@ GDBRemoteCommunicationClient::GetModuleInfo (const FileSpec& module_file_spec,
packet.PutCString("qModuleInfo:");
packet.PutCStringAsRawHex8(module_path.c_str());
packet.PutCString(";");
- const auto& tripple = arch_spec.GetTriple().getTriple();
- packet.PutBytesAsRawHex8(tripple.c_str(), tripple.size());
+ const auto& triple = arch_spec.GetTriple().getTriple();
+ packet.PutBytesAsRawHex8(triple.c_str(), triple.size());
StringExtractorGDBRemote response;
if (SendPacketAndWaitForResponse (packet.GetData(), packet.GetSize(), response, false) != PacketResult::Success)
@@ -3795,7 +3795,7 @@ GDBRemoteCommunicationClient::GetModuleInfo (const FileSpec& module_file_spec,
extractor.GetStringRef ().swap (value);
extractor.SetFilePos (0);
extractor.GetHexByteString (value);
- module_spec.GetFileSpec () = FileSpec (value.c_str(), false);
+ module_spec.GetFileSpec() = FileSpec(value.c_str(), false, arch_spec);
}
}
OpenPOWER on IntegriCloud