public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "macro@linux-mips.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/16101] New: gdb.base/dprintf.exp agent-printf failures with non-Z0-supporting gdbservers Date: Wed, 30 Oct 2013 19:07:00 -0000 [thread overview] Message-ID: <bug-16101-4717@http.sourceware.org/bugzilla/> (raw) http://sourceware.org/bugzilla/show_bug.cgi?id=16101 Bug ID: 16101 Summary: gdb.base/dprintf.exp agent-printf failures with non-Z0-supporting gdbservers Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: macro@linux-mips.org Target: arm-linux-gnueabi, mips-linux-gnu, powerpc-linux-gnu There is an issue with agent dprintf on targets where `gdbserver' does not support the `Z0' packet. There GDB inserts software breakpoints itself, by poking at memory explicitly to modify the instruction stream. This includes dprintf breakpoints. Once such a breakpoint has hit `gdbserver' reports the hit to GDB (without executing the dprintf request). GDB in turn sees `agent-printf' in the list of breakpoint commands and complains: May only run agent-printf on the target This is observed in GDB testing: FAIL: gdb.base/dprintf.exp: 1st dprintf, agent FAIL: gdb.base/dprintf.exp: 2nd dprintf, agent on at least the arm-linux-gnueabi, mips-linux-gnu and powerpc-linux-gnu targets. I think it would be consistent if agent dprintf was not allowed for GDB breakpoints. However disabling the breakpoint commands feature on such targets altogether would regress hardware (`Z1') breakpoints where supported, so it looks to me that agent dprintf should be a per-breakpoint feature, resorting to one of the other styles (probably gdb) for GDB breakpoints. -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2013-10-30 19:07 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-30 19:07 macro@linux-mips.org [this message] 2013-10-31 10:38 ` [Bug gdb/16101] " palves at redhat dot com 2013-11-29 1:08 ` teawater at gmail dot com 2014-01-09 18:35 ` cvs-commit at gcc dot gnu.org 2014-03-11 13:33 ` [Bug breakpoints/16101] " teawater at gmail dot com 2014-03-24 19:32 ` cvs-commit at gcc dot gnu.org 2014-03-24 19:41 ` palves 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-16101-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).