]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/serial.c
gdb: preserve `|` in connection details string
[thirdparty/binutils-gdb.git] / gdb / serial.c
index c6e3cb9bbbb0ee24524adde68d1372ff717446a7..41ba753a4b81e4ad096aad394cccc2a717347f35 100644 (file)
@@ -201,12 +201,7 @@ serial_open (const char *name)
   const char *open_name = name;
 
   if (startswith (name, "|"))
-    {
-      ops = serial_interface_lookup ("pipe");
-      /* Discard ``|'' and any space before the command itself.  */
-      ++open_name;
-      open_name = skip_spaces (open_name);
-    }
+    ops = serial_interface_lookup ("pipe");
   /* 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.  */