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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to