aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-mingw.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ser-mingw.c')
-rw-r--r--gdb/ser-mingw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c
index 232da59..7de55f6 100644
--- a/gdb/ser-mingw.c
+++ b/gdb/ser-mingw.c
@@ -867,6 +867,12 @@ pipe_windows_open (struct serial *scb, const char *name)
if (name == NULL)
error_no_arg (_("child command"));
+ if (*name == '|')
+ {
+ name++;
+ name = skip_spaces (name);
+ }
+
gdb_argv argv (name);
if (! argv[0] || argv[0][0] == '\0')