From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 472B9396C82F; Wed, 16 Jun 2021 18:45:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 472B9396C82F From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/27989] New: gdb.base/args.exp fails with native-extended-gdbserver board Date: Wed, 16 Jun 2021 18:45:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: 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 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 18:45:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27989 Bug ID: 27989 Summary: gdb.base/args.exp fails with native-extended-gdbserver board Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: simark at simark dot ca Target Milestone: --- It boils down to this. With native: $ ./gdb -nx -q --data-directory=3Ddata-directory \ -ex r \ --args /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/args/args s= alut "''" toi produces: salut '' toi With extended-remote (with a gdbserver --multi listening on 1234): $ ./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 I have not dug more than that, but I think that shows a bug in the extended-remote version. Here, I want to literally pass as the argument to my program, such that strcmp ("''", argv[2]) =3D=3D 0 --=20 You are receiving this mail because: You are on the CC list for the bug.=