* Improve the wording (thanks to Ed Maste for the suggestion)

* Add a TODO item

llvm-svn: 191620
This commit is contained in:
Sylvestre Ledru 2013-09-28 15:57:37 +00:00
parent 6c9530b808
commit faa63ce2a2
1 changed files with 3 additions and 1 deletions

View File

@ -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
{