From: drow Date: Mon, 1 Aug 2005 03:41:26 +0000 (+0000) Subject: From Josef Ezra : X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d449ecc30b6854c82c398a9e9767fe99b2079bfc;p=pf3gnuchains%2Fpf3gnuchains3x.git From Josef Ezra : * tracepoint.c (stringify_collection_list): Correct pointer arithmetic. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 630aca39ec..18a2451258 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 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 : * infrun.c (handle_inferior_event): Check for line information in undebuggable functions. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index bf4a2c519f..e522352c3d 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++)