summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-14 14:40:27 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-15 10:35:19 +0100
commit14fe0d62ee8cf1dd48ec8d373ee3dcb3fe06fd77 (patch)
tree1371ddbe7cd9d5640c750b376819c102aed4068b /src/gallium
parent4fffc9d63f117cfc5d5b2400536e8757c786cc1e (diff)
python/retrace: Keep addresses as strings.
To simplify looking up these in the trace.
Diffstat (limited to 'src/gallium')
-rwxr-xr-xsrc/gallium/state_trackers/python/retrace/model.py2
-rwxr-xr-xsrc/gallium/state_trackers/python/retrace/parser.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/python/retrace/model.py b/src/gallium/state_trackers/python/retrace/model.py
index c17b5db9f8..a17a765914 100755
--- a/src/gallium/state_trackers/python/retrace/model.py
+++ b/src/gallium/state_trackers/python/retrace/model.py
@@ -89,7 +89,7 @@ class Pointer(Node):
visitor.visit_pointer(self)
def __str__(self):
- return hex(self.address)
+ return self.address
class Call:
diff --git a/src/gallium/state_trackers/python/retrace/parser.py b/src/gallium/state_trackers/python/retrace/parser.py
index 571d8f6eae..9ee47f6e19 100755
--- a/src/gallium/state_trackers/python/retrace/parser.py
+++ b/src/gallium/state_trackers/python/retrace/parser.py
@@ -316,8 +316,6 @@ class TraceParser(XmlParser):
address = self.character_data()
self.element_end('ptr')
- address = int(address, 16)
-
return Pointer(address)