This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
bug when stringify more then one tracepoint (one line patch)
- From: josef ezra <jezra at emc dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 01 Mar 2005 15:06:56 -0500
- Subject: bug when stringify more then one tracepoint (one line patch)
Hello
In this code, since "count" accumulates the length of tracepoints
bytecode, adding it to "end" caused gaps of arbitrary data at the buffer.
2005-03-01 Josef Ezra <jezra@emc.com>
* tracepoint.c (stringify_collection_list): Correcting position of
next tracepoint to stringify at buffer.
*** tracepoint.c 2005-03-01 12:04:21.000011000 -0500
--- tracepoint.c.orig 2005-03-01 11:54:47.000011000 -0500
*************** stringify_collection_list (struct collec
*** 1439,1445 ****
(long) (list->list[i].end - list->list[i].start));
count += strlen (end);
! end += count;
}
for (i = 0; i < list->next_aexpr_elt; i++)
--- 1439,1445 ----
(long) (list->list[i].end - list->list[i].start));
count += strlen (end);
! end = temp_buf + count;
}
for (i = 0; i < list->next_aexpr_elt; i++)