From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D5323858C27; Thu, 17 Aug 2023 09:56:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D5323858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692266185; bh=N8NL38TeRv1YilgXDVvzJn+DY9YSogMtgq+tJ5RAh70=; h=From:To:Subject:Date:From; b=PthqIj5UBt3k7P7ClBcoGALjf6bBSR+k+q4DWIkRe460cB+1rP5RY6YMK1DQOCyyB EMnsDuE2SiyZ9F3N3SuJZtdt5I6nbrUKeD+QTxrIL+tcOPOG1X7waMdqS/dPjM3pt4 EbLESP1yFra1RUakMEBd9tlpGcd8FiGwl/JTb8cA= From: "valeros08 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug remote/30774] New: GDB fails to parse command passed to be run via pipe on Windows Date: Thu, 17 Aug 2023 09:56:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: valeros08 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30774 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 t= o a remote target using a pipe on Windows. The command that is supposed to laun= ch a debug server is not being parsed at all.=20 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_202210= 02 2. Open a new command prompt 3. Enter the following command to initiate a remote target connection via p= ipe: ``` gdb -ex "target extended-remote | Path\\to\\any\\dummy\\gdb_server.exe --ar= g1 --arg2" ``` Observed Behavior: ------------------ GDB does not parse the command correctly, the command is simply passed with= out any processing, resulting in a failure to start a remote connection. Instea= d, 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': CreateProces= s: No such file or directory ``` Expected Behavior: ------------------ GDB should parse the provided command correctly and establish a remote targ= et 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 exhi= bit 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=