public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/30774] New: GDB fails to parse command passed to be run via pipe on Windows
@ 2023-08-17  9:56 valeros08 at gmail dot com
  2023-08-18 10:31 ` [Bug remote/30774] " ssbssa at sourceware dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: valeros08 at gmail dot com @ 2023-08-17  9:56 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30774

            Bug ID: 30774
           Summary: GDB fails to parse command passed to be run via pipe
                    on Windows
           Product: gdb
           Version: 12.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: remote
          Assignee: unassigned at sourceware dot org
          Reporter: valeros08 at gmail dot com
  Target Milestone: ---

Hi there!

I've encountered an strange issue in GDB v12.1 when attempting to connect to a
remote target using a pipe on Windows. The command that is supposed to launch a
debug server is not being parsed at all. 

Steps to reproduce:
-------------------
1. Install GDB v12 on the target system. I tried these ones:
https://github.com/ssbssa/gdb/releases/tag/gdb-12.1.90.20220502
https://github.com/espressif/binutils-gdb/releases/tag/esp-gdb-v12.1_20221002

2. Open a new command prompt
3. Enter the following command to initiate a remote target connection via pipe:
```
gdb -ex "target extended-remote | Path\\to\\any\\dummy\\gdb_server.exe --arg1
--arg2"
```

Observed Behavior:
------------------
GDB does not parse the command correctly, the command is simply passed without
any processing, resulting in a failure to start a remote connection. Instead,
an error message is displayed indicating that the command was not parsed at all
(even "|" was not removed).
```
error starting child process '| gdb_server.exe --arg1 --arg2': CreateProcess:
No such file or directory
```

Expected Behavior:
------------------
GDB should parse the provided command correctly and establish a remote target
connection via the specified pipe command.

Additional Information:
-----------------------

- The issue persists across multiple attempts and on different systems where
GDB v12 is installed.
- The previous and the newer versions of GDB (e.g. v11 and v13) do not exhibit
this parsing issue and can establish a remote target connection via the same
pipe command without any problems.

Please let me know if any further information is needed to investigate and
resolve this issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-23 17:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17  9:56 [Bug remote/30774] New: GDB fails to parse command passed to be run via pipe on Windows valeros08 at gmail dot com
2023-08-18 10:31 ` [Bug remote/30774] " ssbssa at sourceware dot org
2023-08-18 13:47 ` tromey at sourceware dot org
2023-08-23  9:24 ` valeros08 at gmail dot com
2023-08-23 17:50 ` tromey at sourceware dot org
2023-08-23 17:55 ` ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).