From: José Fonseca Date: Thu, 14 Aug 2008 13:40:27 +0000 (+0100) Subject: python/retrace: Keep addresses as strings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14fe0d62ee8cf1dd48ec8d373ee3dcb3fe06fd77;p=mesa.git python/retrace: Keep addresses as strings. To simplify looking up these in the trace. --- diff --git a/src/gallium/state_trackers/python/retrace/model.py b/src/gallium/state_trackers/python/retrace/model.py index c17b5db9f8b..a17a7659145 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 571d8f6eaed..9ee47f6e192 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)