diff options
Diffstat (limited to 'gdb/serial.c')
-rw-r--r-- | gdb/serial.c | 5 |
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 |