This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/19022] New: Duplicate memory entries in CTF (and maybe tfile?) trace file
- From: "simon.marchi at ericsson dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 29 Sep 2015 17:56:56 +0000
- Subject: [Bug gdb/19022] New: Duplicate memory entries in CTF (and maybe tfile?) trace file
- Auto-submitted: auto-generated
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.