From faa63ce2a2dd91ba8fe3dbff7f7b25b28e095c19 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 28 Sep 2013 15:57:37 +0000 Subject: * Improve the wording (thanks to Ed Maste for the suggestion) * Add a TODO item llvm-svn: 191620 --- .../Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp index 47223f14575..df036cdcc8e 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp @@ -762,10 +762,12 @@ GDBRemoteCommunicationServer::Handle_qLaunchGDBServer (StringExtractorGDBRemote char connect_url[PATH_MAX]; Error error; std::string hostname; + // TODO: /tmp/ should not be hardcoded. User might want to override /tmp + // with the TMPDIR environnement variable char unix_socket_name[PATH_MAX] = "/tmp/XXXXXX"; if (::mkstemp (unix_socket_name) == -1) { - error.SetErrorStringWithFormat("failed to make temporary path for a unix socket with errno: %s", strerror(errno)); + error.SetErrorStringWithFormat("failed to make temporary path for a unix socket: %s", strerror(errno)); } else { -- cgit v1.2.3