binutils-gdb/gdb/testsuite
Pedro Alves 9779ab84ac PR remote/15455 - QTro remote packet broken
In the function remote_trace_set_readonly_regions in gdb/remote.c, the
local variable 'offset' does not account for "QTro" at the start of
the packet with the result that if there are any read-only regions,
the packet is sent -- but without the "QTro" -- causing the remote
stub to report that the packet is unsupported:

  Sending packet: $:0000000000400200,(...),00000000004560a4#ab...Packet received:

vs the expected:

  Sending packet: $QTro:0000000000400200,(...),00000000004560a4#31...Packet received: OK

We don't see the problem when testing with GDBserver, as that supports
qXfer:trace-frame-info:read, meaning GDBserver never needs to read
from the read-only sections directly itself.  This commit adds a test
that explicitly disables qXfer:trace-frame-info:read.

gdb/
2013-05-10  David Taylor  <dtaylor@emc.com>

	PR remote/15455

	* remote.c (remote_trace_set_readonly_regions): Do not overwrite
	"QTro" at start of packet.

gdb/testsuite/
2013-05-10  Pedro Alves  <palves@redhat.com>

	PR remote/15455

	* gdb.trace/qtro.c: New file.
	* gdb.trace/qtro.exp: New file.
2013-05-10 13:59:45 +00:00
..
boards
config
gdb.ada
gdb.arch Merge gdb.arch/system-gcore.exp into gdb.base/gcore.exp 2013-05-07 17:51:42 +00:00
gdb.asm
gdb.base * gdb.base/solib-search.exp: Set test name for "set 2013-05-08 18:56:02 +00:00
gdb.btrace
gdb.cell
gdb.cp PR c++/13588: 2013-04-15 18:13:01 +00:00
gdb.disasm
gdb.dwarf2 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier. 2013-05-06 19:44:04 +00:00
gdb.fortran
gdb.gdb * lib/selftest-support.exp: New file. 2013-05-07 18:06:16 +00:00
gdb.go
gdb.hp
gdb.java
gdb.linespec gdb/ 2013-05-07 17:04:29 +00:00
gdb.mi * gdb.mi/mi-var-create-rtti.exp: Create a variable of 2013-04-18 10:08:08 +00:00
gdb.modula2
gdb.multi
gdb.objc
gdb.opencl
gdb.opt
gdb.pascal
gdb.python 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> 2013-05-10 10:26:03 +00:00
gdb.reverse * gdb.reverse/shr.h: New file. 2013-05-06 22:07:13 +00:00
gdb.server gdb/testsuite/ 2013-04-09 15:26:44 +00:00
gdb.stabs
gdb.threads gdb/ 2013-05-07 07:43:33 +00:00
gdb.trace PR remote/15455 - QTro remote packet broken 2013-05-10 13:59:45 +00:00
gdb.xml 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> 2013-05-07 01:12:41 +00:00
lib * lib/selftest-support.exp: New file. 2013-05-07 18:06:16 +00:00
aclocal.m4
ChangeLog PR remote/15455 - QTro remote packet broken 2013-05-10 13:59:45 +00:00
configure
configure.ac
dg-extract-results.sh
Makefile.in
TODO Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00