OSDN Git Service

From Josef Ezra <jezra@emc.com>:
authorDaniel Jacobowitz <dan@debian.org>
Mon, 1 Aug 2005 03:41:34 +0000 (03:41 +0000)
committerDaniel Jacobowitz <dan@debian.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 630aca3..18a2451 100644 (file)
@@ -1,5 +1,11 @@
 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>:
        * infrun.c (handle_inferior_event): Check for line information in
        undebuggable functions.
index bf4a2c5..e522352 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++)