diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 630aca39ecc..18a24512583 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2005-07-31 Daniel Jacobowitz + + From Josef Ezra : + * tracepoint.c (stringify_collection_list): Correct pointer + arithmetic. + 2005-07-31 Daniel Jacobowitz Suggested by Vladimir Prus : diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index bf4a2c519fa..e522352c3db 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -1443,7 +1443,7 @@ stringify_collection_list (struct collection_list *list, char *string) (long) (list->list[i].end - list->list[i].start)); count += strlen (end); - end += count; + end = temp_buf + count; } for (i = 0; i < list->next_aexpr_elt; i++)