aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2018-10-29 13:22:47 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2018-10-29 13:22:47 -0400
commit431f22cc098a118a862412c1bac1a8aa1bc6ceb7 (patch)
treecd7aab111d346273eef3da089f65055b7fffed10 /gdb/serial.c
parent7f53228719a0111e41c66da6c9c3b2ed1fd2aab9 (diff)
downloadgdb-431f22cc098a118a862412c1bac1a8aa1bc6ceb7.zip
gdb-431f22cc098a118a862412c1bac1a8aa1bc6ceb7.tar.gz
gdb-431f22cc098a118a862412c1bac1a8aa1bc6ceb7.tar.bz2
Revert "GDB: Remote target can now accept the form unix::/path/to/socket."
This reverts commit 88f5cc8cf8606478832c7d0d7b74755f3f625015.
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index f7c3e6e..7f9362a 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -210,7 +210,7 @@ serial_open (const char *name)
/* Check for a colon, suggesting an IP address/port pair.
Do this *after* checking for all the interesting prefixes. We
don't want to constrain the syntax of what can follow them. */
- else if (!startswith (name, "unix:") && (strchr (name, ':')))
+ else if (strchr (name, ':'))
ops = serial_interface_lookup ("tcp");
else
{
@@ -218,8 +218,7 @@ serial_open (const char *name)
/* Check to see if name is a socket. If it is, then treat it
as such. Otherwise assume that it's a character device. */
struct stat sb;
- if (startswith (name, "unix:") ||
- (stat (name, &sb) == 0 && (sb.st_mode & S_IFMT) == S_IFSOCK))
+ if (stat (name, &sb) == 0 && (sb.st_mode & S_IFMT) == S_IFSOCK)
ops = serial_interface_lookup ("local");
else
#endif