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 gdb/testsuite/ 2013-03-26 12:46:24 +00:00
actions.exp gdb/ 2013-04-10 09:42:57 +00:00
ax.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
backtrace.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
change-loc-1.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
change-loc-2.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
change-loc.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
change-loc.exp gdb/testsuite/ 2013-03-15 01:41:29 +00:00
change-loc.h Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
circ.c gdb/testsuite/ 2013-03-26 12:46:24 +00:00
circ.exp 2013-05-08 Hafiz Abid Qadeer <abidh@codesourcery.com> 2013-05-08 16:15:02 +00:00
collection.c gdb/testsuite/ 2013-03-26 12:46:24 +00:00
collection.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
deltrace.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
disconnected-tracing.c gdb/gdbserver: 2013-01-18 06:40:58 +00:00
disconnected-tracing.exp gdb/testsuite/ 2013-03-15 01:41:29 +00:00
ftrace.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
ftrace.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
infotrace.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
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 gdb/testsuite/ 2013-03-15 01:41:29 +00:00
mi-tsv-changed.exp gdb/testsuite/ 2013-03-15 01:41:29 +00:00
packetlen.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
passc-dyn.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
passcount.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
pending.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
pending.exp gdb/testsuite/ 2013-03-15 01:41:29 +00:00
pendshr1.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
pendshr2.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
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 Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
stap-trace.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
stap-trace.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
status-stop.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
status-stop.exp 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> 2013-05-03 15:43:58 +00:00
strace.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
strace.exp gdb/testsuite/ 2013-03-15 01:41:29 +00:00
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 gdb/testsuite/ 2013-03-14 13:34:06 +00:00
trace-break.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
trace-break.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
trace-buffer-size.c 2012-03-08 Stan Shebs <stan@codesourcery.com> 2013-03-08 15:06:39 +00:00
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 Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
trace-mt.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
tracecmd.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
tspeed.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
tspeed.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
tstatus.exp gdb/ 2013-04-10 09:42:57 +00:00
tsv.exp gdb/ 2013-04-10 09:42:57 +00:00
unavailable.cc Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
unavailable.exp gdb/testsuite/ 2013-03-15 01:41:29 +00:00
while-dyn.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
while-stepping.exp gdb/ 2013-04-10 09:42:57 +00:00