diff options
author | Greg Clayton <gclayton@apple.com> | 2014-02-28 20:25:41 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-02-28 20:25:41 +0000 |
commit | ec67ab1e0c6835cc904c16c3b40d0ff161580bcf (patch) | |
tree | 91fd10e7a19ee25af2ea37c25e6115b2ac699f50 | |
parent | 86b86973c7f490662342ce086a0c4496f4d23974 (diff) | |
download | bcm5719-llvm-ec67ab1e0c6835cc904c16c3b40d0ff161580bcf.tar.gz bcm5719-llvm-ec67ab1e0c6835cc904c16c3b40d0ff161580bcf.zip |
Fixed "process launch --tty" on MacOSX.
llvm-svn: 202535
-rw-r--r-- | lldb/source/Core/ConnectionFileDescriptor.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp index ed876e52c9a..743bd26404f 100644 --- a/lldb/source/Core/ConnectionFileDescriptor.cpp +++ b/lldb/source/Core/ConnectionFileDescriptor.cpp @@ -218,34 +218,34 @@ ConnectionFileDescriptor::Connect (const char *s, Error *error_ptr) if (s && s[0]) { - if (strstr(s, "listen://")) + if (strstr(s, "listen://") == s) { // listen://HOST:PORT return SocketListen (s + strlen("listen://"), error_ptr); } - else if (strstr(s, "accept://")) + else if (strstr(s, "accept://") == s) { // unix://SOCKNAME return NamedSocketAccept (s + strlen("accept://"), error_ptr); } - else if (strstr(s, "unix-accept://")) + else if (strstr(s, "unix-accept://") == s) { // unix://SOCKNAME return NamedSocketAccept (s + strlen("unix-accept://"), error_ptr); } - else if (strstr(s, "connect://")) + else if (strstr(s, "connect://") == s) { return ConnectTCP (s + strlen("connect://"), error_ptr); } - else if (strstr(s, "tcp-connect://")) + else if (strstr(s, "tcp-connect://") == s) { return ConnectTCP (s + strlen("tcp-connect://"), error_ptr); } - else if (strstr(s, "udp://")) + else if (strstr(s, "udp://") == s) { return ConnectUDP (s + strlen("udp://"), error_ptr); } - else if (strstr(s, "fd://")) + else if (strstr(s, "fd://") == s) { // Just passing a native file descriptor within this current process // that is already opened (possibly from a service or other source). @@ -299,7 +299,7 @@ ConnectionFileDescriptor::Connect (const char *s, Error *error_ptr) m_fd_send = m_fd_recv = -1; return eConnectionStatusError; } - else if (strstr(s, "file://")) + else if (strstr(s, "file://") == s) { // file:///PATH const char *path = s + strlen("file://"); |