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:
Vladimir Prus 2006-11-04 08:37:24 +00:00
parent f4f5eb403f
commit 8b9e3a1523
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-11-04 Vladimir Prus <vladimir@codesourcery.com>
* serial.c (serial_open): Strip leading spaces from program
name when opening pipe.
2006-11-03 Jim Blandy <jimb@codesourcery.com>
* dwarf2loc.c (dwarf_expr_read_reg): Use frame_unwind_register

View File

@ -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