From: Philippe E. <ph...@us...> - 2003-01-29 18:40:48
|
Update of /cvsroot/oprofile/oprofile/pp In directory sc8-pr-cvs1:/tmp/cvs-serv27901 Modified Files: op_to_source.cpp Log Message: use strtoull not strtoul to read vma. Index: op_to_source.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/pp/op_to_source.cpp,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- op_to_source.cpp 14 Dec 2002 16:39:29 -0000 1.46 +++ op_to_source.cpp 29 Jan 2003 18:40:44 -0000 1.47 @@ -819,8 +819,9 @@ // do not use the bfd equivalent: // - it does not skip space at begin // - we does not need cross architecture compile so the native - // strtoul must work (assuming unsigned long can contain a vma) - bfd_vma vma = strtoul(str_vma.c_str(), NULL, 16); + // strtoull must work, assuming unsigned long long can contain a vma + // and on 32/64 bits box bfd_vma is 64 bits + bfd_vma vma = strtoull(str_vma.c_str(), NULL, 16); return samples->find_symbol(vma); } @@ -844,8 +845,9 @@ // do not use the bfd equivalent: // - it does not skip space at begin // - we does not need cross architecture compile so the native - // strtoul must work (assuming unsigned long can contain a vma) - bfd_vma vma = strtoul(str.c_str(), NULL, 16); + // strtoull must work, assuming unsigned long long can contain a vma + // and on 32/64 bits box bfd_vma is 64 bits + bfd_vma vma = strtoull(str.c_str(), NULL, 16); sample_entry const * sample = samples->find_sample(vma); if (sample) { |