python/retrace: Keep addresses as strings.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 14 Aug 2008 13:40:27 +0000 (14:40 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 15 Aug 2008 09:35:19 +0000 (10:35 +0100)
To simplify looking up these in the trace.

src/gallium/state_trackers/python/retrace/model.py
src/gallium/state_trackers/python/retrace/parser.py

index c17b5db9f8bc19c7109d7fddbd4558be6e9df52d..a17a765914557690926b8b37b454e474cf3f730d 100755 (executable)
@@ -89,7 +89,7 @@ class Pointer(Node):
         visitor.visit_pointer(self)
         
     def __str__(self):
-        return hex(self.address)
+        return self.address
 
 
 class Call:
index 571d8f6eaed129fa231ae5e96de78b52ccfa7603..9ee47f6e1924108011ed5cbeee8834e69ec8bd7b 100755 (executable)
@@ -316,8 +316,6 @@ class TraceParser(XmlParser):
         address = self.character_data()
         self.element_end('ptr')
 
-        address = int(address, 16)
-        
         return Pointer(address)