[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-commits
Subject:    [oprof-cvs] CVS: oprofile/libutil++ op_bfd.cpp, 1.81, 1.82 op_bfd.h,
From:       Maynard Johnson <maynardj () users ! sourceforge ! net>
Date:       2008-05-08 17:17:58
Message-ID: E1Ju9kk-00039O-61 () sc8-pr-cvs3 ! sourceforge ! net
[Download RAW message or body]

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


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Oprofile-commits mailing list
Oprofile-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic