From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 204B93857C7B; Wed, 16 Jun 2021 19:11:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 204B93857C7B From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/27989] gdb.base/args.exp fails with native-extended-gdbserver board Date: Wed, 16 Jun 2021 19:11:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2021 19:11:17 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27989 --- Comment #1 from Simon Marchi --- Same goes for a newline. The argument passed on the shell is literally jus= t a newline character, 0x0a. I added some HTML-like annotations to see where t= he args start and end, for clarity. With native: $ ./gdb -nx -q --data-directory=3Ddata-directory \ -ex r \=20=20=20=20=20=20=20=20=20=20=20=20=20=20 --args /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/args/args s= alut "=20=20=20=20=20=20=20=20=20=20=20=20=20=20 " toi produces salut toi With extended-remote: ./gdb -nx -q --data-directory=3Ddata-directory \ -ex "tar ext :1234" \ -ex "set remote exec-file /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/args/args" \ -ex "set sysroot" \ -ex r \ --args /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/args/args s= alut " " toi produces salut ' ' toi In the second case, single quotes appeared out of nowhere. --=20 You are receiving this mail because: You are on the CC list for the bug.=