Skip to content

Commit

Permalink
Merge pull request #450 from janus926/bug-1172813
Browse files Browse the repository at this point in the history
Bug 1172813 - Catch the case which string is 0x prefixed but can't co…
  • Loading branch information
rvandermeulen committed Jun 10, 2015
2 parents c91974c + b0b8a50 commit d183e4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/profile-symbolicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ def getUnresolvedAddressesV3():
for thread in self.profile["threads"]:
for str in thread["stringTable"]:
if str[:2] == "0x":
yield int(str, 0)
try:
yield int(str, 0)
except ValueError:
continue

if self.profile["meta"]["version"] >= 3:
addresses = getUnresolvedAddressesV3()
Expand Down

0 comments on commit d183e4a

Please sign in to comment.