public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/16101] New: gdb.base/dprintf.exp agent-printf failures with non-Z0-supporting gdbservers
@ 2013-10-30 19:07 macro@linux-mips.org
  2013-10-31 10:38 ` [Bug gdb/16101] " palves at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: macro@linux-mips.org @ 2013-10-30 19:07 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-24 19:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-30 19:07 [Bug gdb/16101] New: gdb.base/dprintf.exp agent-printf failures with non-Z0-supporting gdbservers macro@linux-mips.org
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

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).