public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/19022] New: Duplicate memory entries in CTF (and maybe tfile?) trace file
@ 2015-09-29 17:56 simon.marchi at ericsson dot com
0 siblings, 0 replies; only message in thread
From: simon.marchi at ericsson dot com @ 2015-09-29 17:56 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=19022
Bug ID: 19022
Summary: Duplicate memory entries in CTF (and maybe tfile?)
trace file
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: simon.marchi at ericsson dot com
Target Milestone: ---
When using this test program:
----
#include <unistd.h>
#include <stdio.h>
volatile int global = 0;
int main()
{
int i;
for (i = 0; i < 100; i++) {
global += i;
printf("global is now %d\n", global);
//sleep(1);
}
return 0;
}
----
and running this gdb script:
----
tar ext :1234
set default-collect global * 3
trace 11
actions
collect global
collect global * 2
end
break 15
tstart
c
tstop
tsave -ctf allo
quit
----
Using babeltrace on the output trace (directory allo) shows that there are
duplicate memory entries:
$ babeltrace allo
...
0 frame: { tpnum = 1 }, { }
0 memory: { tpnum = 1 }, { address = 0x601044, length = 4, contents = [ [0] =
10, [1] = 0, [2] = 0, [3] = 0 ] }
0 memory: { tpnum = 1 }, { address = 0x601044, length = 4, contents = [ [0] =
10, [1] = 0, [2] = 0, [3] = 0 ] }
0 memory: { tpnum = 1 }, { address = 0x601044, length = 4, contents = [ [0] =
10, [1] = 0, [2] = 0, [3] = 0 ] }
0 frame: { tpnum = 1 }, { }
0 memory: { tpnum = 1 }, { address = 0x601044, length = 4, contents = [ [0] =
15, [1] = 0, [2] = 0, [3] = 0 ] }
0 memory: { tpnum = 1 }, { address = 0x601044, length = 4, contents = [ [0] =
15, [1] = 0, [2] = 0, [3] = 0 ] }
0 memory: { tpnum = 1 }, { address = 0x601044, length = 4, contents = [ [0] =
15, [1] = 0, [2] = 0, [3] = 0 ] }
...
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-29 17:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-29 17:56 [Bug gdb/19022] New: Duplicate memory entries in CTF (and maybe tfile?) trace file simon.marchi at ericsson dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).