From Josef Ezra <jezra@emc.com>:
authorDaniel Jacobowitz <drow@false.org>
Mon, 1 Aug 2005 03:41:34 +0000 (03:41 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 1 Aug 2005 03:41:34 +0000 (03:41 +0000)
* tracepoint.c (stringify_collection_list): Correct pointer
arithmetic.

gdb/ChangeLog
gdb/tracepoint.c

index 630aca39ecc384c07abf7f81908c141f996ab993..18a2451258397748d2f2c9ffe2036a9d8d4745b6 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-31  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       From Josef Ezra <jezra@emc.com>:
+       * tracepoint.c (stringify_collection_list): Correct pointer
+       arithmetic.
+
 2005-07-31  Daniel Jacobowitz  <dan@codesourcery.com>
 
        Suggested by Vladimir Prus <ghost@cs.msu.su>:
index bf4a2c519fa74f174a1d6797fff292d25236da32..e522352c3dbd3487e9c61c721638c49917833c29 100644 (file)
@@ -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++)