From: Maynard J. <may...@us...> - 2008-05-08 17:18:09
|
Update of /cvsroot/oprofile/oprofile/libutil++ In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8790/libutil++ Modified Files: op_bfd.cpp op_bfd.h Log Message: Fix for 32-bit opreport to work with 64-bit JIT profile agent Index: op_bfd.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/op_bfd.cpp,v retrieving revision 1.81 retrieving revision 1.82 diff -u -p -d -r1.81 -r1.82 --- op_bfd.cpp 29 Apr 2008 12:07:46 -0000 1.81 +++ op_bfd.cpp 8 May 2008 17:17:55 -0000 1.82 @@ -375,15 +375,15 @@ bool op_bfd::get_linenr(symbol_index_t s size_t op_bfd::symbol_size(op_bfd_symbol const & sym, op_bfd_symbol const * next) const { - unsigned long start = sym.filepos(); - unsigned long end = next ? next->filepos() : file_size; + unsigned long long start = sym.filepos(); + unsigned long long end = next ? next->filepos() : file_size; return end - start; } void op_bfd::get_symbol_range(symbol_index_t sym_idx, - unsigned long & start, unsigned long & end) const + unsigned long long & start, unsigned long long & end) const { op_bfd_symbol const & sym = syms[sym_idx]; Index: op_bfd.h =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/op_bfd.h,v retrieving revision 1.49 retrieving revision 1.50 diff -u -p -d -r1.49 -r1.50 --- op_bfd.h 28 Apr 2008 21:23:25 -0000 1.49 +++ op_bfd.h 8 May 2008 17:17:55 -0000 1.50 @@ -149,7 +149,7 @@ public: * All errors are fatal. */ void get_symbol_range(symbol_index_t sym_idx, - unsigned long & start, unsigned long & end) const; + unsigned long long & start, unsigned long long & end) const; /** * @param start reference to the start vma |