Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix for QTro remote packet
@ 2013-05-01 17:38 David Taylor
  2013-05-02 17:23 ` Pedro Alves
  0 siblings, 1 reply; 4+ messages in thread
From: David Taylor @ 2013-05-01 17:38 UTC (permalink / raw)
  To: gdb-patches

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


For gdb/ChangeLog:

2013-05-01  David Taylor  <dtaylor@emc.com>

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

Here's a one line patch to gdb/remote.c of gdb 7.6:

--- remote.c~	2013-04-12 12:04:50.000000000 -0400
+++ remote.c	2013-05-01 12:45:10.000000000 -0400
@@ -10652,6 +10652,7 @@
     return;			/* No information to give.  */
 
   strcpy (target_buf, "QTro");
+  offset = strlen (target_buf);
   for (s = exec_bfd->sections; s; s = s->next)
     {
       char tmp1[40], tmp2[40];

This is small enough that no copyright assignment should be needed, but
EMC has one on file.

David
--
David Taylor
dtaylor@emc.com


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

end of thread, other threads:[~2013-05-11 10:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-01 17:38 [PATCH] Fix for QTro remote packet David Taylor
2013-05-02 17:23 ` Pedro Alves
2013-05-10 14:17   ` Pedro Alves
2013-05-11 10:38     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox