old-cross-binutils/gdb/testsuite/gdb.trace
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
..
actions-changed.c tracepoint->step_count fixes 2013-04-04 19:22:38 +00:00
actions-changed.exp tracepoint->step_count fixes 2013-04-04 19:22:38 +00:00
actions.c
actions.exp gdb/ 2013-04-10 09:42:57 +00:00
ax.exp
backtrace.exp
change-loc-1.c
change-loc-2.c
change-loc.c
change-loc.exp
change-loc.h
circ.c
circ.exp 2013-05-08 Hafiz Abid Qadeer <abidh@codesourcery.com> 2013-05-08 16:15:02 +00:00
collection.c
collection.exp
deltrace.exp
disconnected-tracing.c
disconnected-tracing.exp
ftrace.c
ftrace.exp
infotrace.exp
Makefile.in tracepoint->step_count fixes 2013-04-04 19:22:38 +00:00
mi-traceframe-changed.exp gdb/testsuite/ 2013-04-03 10:11:46 +00:00
mi-tracepoint-changed.exp
mi-tsv-changed.exp
packetlen.exp
passc-dyn.exp
passcount.exp
pending.c
pending.exp
pendshr1.c
pendshr2.c
qtro.c PR remote/15455 - QTro remote packet broken 2013-05-10 13:59:45 +00:00
qtro.exp PR remote/15455 - QTro remote packet broken 2013-05-10 13:59:45 +00:00
report.exp gdb/ 2013-04-10 09:42:57 +00:00
save-trace.exp
stap-trace.c
stap-trace.exp
status-stop.c
status-stop.exp 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> 2013-05-03 15:43:58 +00:00
strace.c
strace.exp
tfile.c gdb/testsuite/ 2013-04-03 03:43:54 +00:00
tfile.exp gdb/testsuite/ 2013-04-03 03:43:54 +00:00
tfind.exp
trace-break.c
trace-break.exp
trace-buffer-size.c
trace-buffer-size.exp Accept "set foo unlimited" in integer/uinteger/zuinteger_unlimited commands. 2013-04-10 15:11:12 +00:00
trace-mt.c
trace-mt.exp
tracecmd.exp
tspeed.c
tspeed.exp
tstatus.exp gdb/ 2013-04-10 09:42:57 +00:00
tsv.exp gdb/ 2013-04-10 09:42:57 +00:00
unavailable.cc
unavailable.exp
while-dyn.exp
while-stepping.exp gdb/ 2013-04-10 09:42:57 +00:00