|
From: Matthias S. <zz...@ge...> - 2012-04-27 09:49:46
|
Hi there!
Comparing the output from gdb attached to valgrind gdbserver and the
core file valgrind creates, the thread order is inverted.
As I have more minor issues with gdb and valgrind core files, I do not
known if this is always the case.
For exactly this problem I have two possible solutions:
A. Change the loop over all threads to be reversed:
- for(i = 1; i < VG_N_THREADS; i++) {
+ for(i = VG_N_THREADS - 1; i >= 1 ; i--) {
B. Change the function add_note (or related notes processing code), to
output the notes in the order add_note is called, and not backward.
I wonder which approach is better, but I tend to approach B, as then the
code creates the notes in the order they appear in the final core file.
Regards
Matthias
|