public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org> 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 [thread overview] Message-ID: <bug-27989-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=27989 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=data-directory \ -ex r \ --args /home/smarchi/build/binutils-gdb/gdb/testsuite/outputs/gdb.base/args/args salut "''" toi produces: salut '' toi With extended-remote (with a gdbserver --multi listening on 1234): $ ./gdb -nx -q --data-directory=data-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 salut "''" 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 <single-quote><single-quote> as the argument to my program, such that strcmp ("''", argv[2]) == 0 -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2021-06-16 18:45 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-16 18:45 simark at simark dot ca [this message] 2021-06-16 19:11 ` [Bug gdb/27989] " simark at simark dot ca 2021-06-17 13:42 ` cvs-commit at gcc dot gnu.org 2021-10-21 13:52 ` m.weghorn at posteo dot de 2023-10-06 12:08 ` cvs-commit at gcc dot gnu.org 2023-10-06 12:08 ` cvs-commit at gcc dot gnu.org 2023-10-09 14:40 ` aburgess at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-27989-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).