From: Philippe E. <ph...@us...> - 2002-10-19 18:30:15
|
Update of /cvsroot/oprofile/oprofile/libutil++ In directory usw-pr-cvs1:/tmp/cvs-serv1353/libutil++ Modified Files: op_bfd.cpp Log Message: calculate symbol size after removing duplicate symbol. Fix #625678 regards, Phil Index: op_bfd.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/op_bfd.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- op_bfd.cpp 1 Oct 2002 22:32:31 -0000 1.12 +++ op_bfd.cpp 19 Oct 2002 18:30:12 -0000 1.13 @@ -171,11 +171,6 @@ stable_sort(syms.begin(), syms.end(), symcomp); - // now we can calculate the symbol size - for (i = 0 ; i < syms.size() ; ++i) { - syms[i].size(symbol_size(i)); - } - // we need to ensure than for a given vma only one symbol exist else // we read more than one time some samples. Fix #526098 // ELF symbols size : potential bogosity here because when using @@ -188,6 +183,11 @@ syms.erase(syms.begin() + i); i--; } + } + + // now we can calculate the symbol size + for (i = 0 ; i < syms.size() ; ++i) { + syms[i].size(symbol_size(i)); } cverb << "number of symbols before excluding " << dec << syms.size() << endl; |