Parse the section:offset instead of the rva+base when reading mapfiles.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 12 Jun 2008 13:19:17 +0000 (22:19 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 19 Jun 2008 01:47:49 +0000 (10:47 +0900)
bin/win32kprof.py

index 94b99486338afccc153c23131be9fcfe33c55ed1..b4f9ce95dcab627a6d7cc900e5a10a7d60803545 100755 (executable)
@@ -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