From: josef ezra <jezra@emc.com>
To: gdb-patches@sources.redhat.com
Subject: bug when stringify more then one tracepoint (one line patch)
Date: Tue, 01 Mar 2005 20:07:00 -0000 [thread overview]
Message-ID: <4224CB60.1060607@emc.com> (raw)
[-- 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++)
next reply other threads:[~2005-03-01 20:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 20:07 josef ezra [this message]
2005-05-01 23:24 ` Daniel Jacobowitz
2005-05-02 18:57 ` josef ezra
2005-08-01 3:42 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4224CB60.1060607@emc.com \
--to=jezra@emc.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox