Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* bug when stringify more then one tracepoint (one line patch)
@ 2005-03-01 20:07 josef ezra
  2005-05-01 23:24 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: josef ezra @ 2005-03-01 20:07 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]


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.


[-- Attachment #2: tracepoints-bugfix.diff --]
[-- Type: text/plain, Size: 567 bytes --]

*** 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++)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-01  3:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-01 20:07 bug when stringify more then one tracepoint (one line patch) josef ezra
2005-05-01 23:24 ` Daniel Jacobowitz
2005-05-02 18:57   ` josef ezra
2005-08-01  3:42     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox