2006-11-04 Vladimir Prus <vladimir@codesourcery.com>
authorVladimir Prus <vladimir@codesourcery.com>
Sat, 4 Nov 2006 08:37:24 +0000 (08:37 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sat, 4 Nov 2006 08:37:24 +0000 (08:37 +0000)
       * serial.c (serial_open): Strip leading spaces from program
       name when opening pipe.

gdb/ChangeLog
gdb/serial.c

index 4b7720adec318e27037aafbb00d5cd17e9c83b4b..65b808a767cf6f6397a74c38bc898d730808b4b5 100644 (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
index 6a2c634cb345d5084e6ca8d10367449db646cbc3..77b28f8feff1da330bd6b1bf331109fa4a237af0 100644 (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
This page took 0.027895 seconds and 4 git commands to generate.