+2006-04-11 Jim Blandy <jimb@codesourcery.com>
+
+ * serial.c (serial_open): Check for special cases at the front of
+ the "device" name before scanning for the ':' that would indicate
+ an IP-based connection.
+
2006-04-10 Christopher Faylor <cgf@timesys.com>
* win32-nat.c (open_symbol_file_object): New function.
if (strcmp (name, "pc") == 0)
ops = serial_interface_lookup ("pc");
- else if (strchr (name, ':'))
- ops = serial_interface_lookup ("tcp");
else if (strncmp (name, "lpt", 3) == 0)
ops = serial_interface_lookup ("parallel");
else if (strncmp (name, "|", 1) == 0)
ops = serial_interface_lookup ("pipe");
open_name = name + 1; /* discard ``|'' */
}
+ /* 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 (strchr (name, ':'))
+ ops = serial_interface_lookup ("tcp");
else
ops = serial_interface_lookup ("hardwire");