mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
2006-11-04 Vladimir Prus <vladimir@codesourcery.com>
* serial.c (serial_open): Strip leading spaces from program name when opening pipe.
This commit is contained in:
@ -189,7 +189,10 @@ serial_open (const char *name)
|
||||
else if (strncmp (name, "|", 1) == 0)
|
||||
{
|
||||
ops = serial_interface_lookup ("pipe");
|
||||
open_name = name + 1; /* discard ``|'' */
|
||||
/* Discard ``|'' and any space before the command itself. */
|
||||
++open_name;
|
||||
while (isspace (*open_name))
|
||||
++open_name;
|
||||
}
|
||||
/* Check for a colon, suggesting an IP address/port pair.
|
||||
Do this *after* checking for all the interesting prefixes. We
|
||||
|
Reference in New Issue
Block a user