summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2016-09-19 22:06:12 +0000
committerSean Callanan <scallanan@apple.com>2016-09-19 22:06:12 +0000
commit1355f4735d3c24e665c9a83c15970f929ee165a1 (patch)
treeb039fb1ce1c42a3bf5d49287f8ed6472cbf61dbc /lldb/source/Plugins/Process/gdb-remote
parent5c725f3a06b7f4236b3d98c14f1109a5852ed6ef (diff)
downloadbcm5719-llvm-1355f4735d3c24e665c9a83c15970f929ee165a1.tar.gz
bcm5719-llvm-1355f4735d3c24e665c9a83c15970f929ee165a1.zip
Fixed the build by changing a couple of const char *s to StringRefs.
llvm-svn: 281943
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 14c64f2e514..2c0a5e06c78 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -1123,8 +1123,9 @@ Error GDBRemoteCommunication::StartDebugserverProcess(
__FUNCTION__, error.AsCString());
return error;
}
- debugserver_args.AppendArgument("--named-pipe");
- debugserver_args.AppendArgument(named_pipe_path.c_str());
+ debugserver_args.AppendArgument(llvm::StringRef("--named-pipe"));
+ debugserver_args.AppendArgument(
+ llvm::StringRef(named_pipe_path.c_str()));
#else
// Binding to port zero, we need to figure out what port it ends up
// using using an unnamed pipe...
@@ -1191,7 +1192,7 @@ Error GDBRemoteCommunication::StartDebugserverProcess(
if (env_debugserver_log_flags) {
::snprintf(arg_cstr, sizeof(arg_cstr), "--log-flags=%s",
env_debugserver_log_flags);
- debugserver_args.AppendArgument(arg_cstr);
+ debugserver_args.AppendArgument(llvm::StringRef(arg_cstr));
}
#else
const char *env_debugserver_log_channels =
OpenPOWER on IntegriCloud