summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-12 22:19:17 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-19 10:47:49 +0900
commit4a49f1d2e2c325be74e423b55781d1bcbb24e08d (patch)
tree4dc387f837688b0f1208ef9aad2de96712fef860
parentf1401385587882bb9d18a5f5b01dcbb71ddf0a2f (diff)
Parse the section:offset instead of the rva+base when reading mapfiles.
-rwxr-xr-xbin/win32kprof.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/win32kprof.py b/bin/win32kprof.py
index 94b9948633..b4f9ce95dc 100755
--- a/bin/win32kprof.py
+++ b/bin/win32kprof.py
@@ -139,7 +139,8 @@ class Profile:
continue
if type != 'f':
continue
- addr = int(addr, 16)
+ section, offset = section_offset.split(':')
+ addr = int(offset, 16)
name = demangle(name)
if last_addr == addr:
# TODO: handle collapsed functions