Author: dgorbachev
Date: Thu Dec 10 09:55:11 2009
New Revision: 44515
URL:
http://svn.reactos.org/svn/reactos?rev=44515&view=rev
Log:
Apply r44496 change to raddr2line, too. Remove unused argument.
Modified:
trunk/reactos/tools/rsym/raddr2line.c
Modified: trunk/reactos/tools/rsym/raddr2line.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rsym/raddr2line.c?re…
==============================================================================
--- trunk/reactos/tools/rsym/raddr2line.c [iso-8859-1] (original)
+++ trunk/reactos/tools/rsym/raddr2line.c [iso-8859-1] Thu Dec 10 09:55:11 2009
@@ -16,10 +16,14 @@
#include "rsym.h"
+/* Assume if an offset > ABS_TRESHOLD, then it must be absolute */
+#define ABS_TRESHOLD 0x00400000L
+
size_t fixup_offset ( size_t ImageBase, size_t offset )
{
-// if ( offset >= ImageBase )
-// offset -= ImageBase;
+ if (offset > ABS_TRESHOLD)
+ offset -= ImageBase;
+
return offset;
}
@@ -97,7 +101,7 @@
}
int
-process_data ( const void* FileData, size_t FileSize, size_t offset )
+process_data ( const void* FileData, size_t offset )
{
PIMAGE_DOS_HEADER PEDosHeader;
PIMAGE_FILE_HEADER PEFileHeader;
@@ -158,7 +162,7 @@
}
else
{
- res = process_data ( FileData, FileSize, offset );
+ res = process_data ( FileData, offset );
free ( FileData );
}