Fix symbolizer invocation with no addresses.

This commit is contained in:
whitequark 2016-01-10 18:04:10 +00:00
parent d436093317
commit ee1ef551bc

View File

@ -148,6 +148,9 @@ class Target:
return results["output"].read()
def symbolize(self, library, addresses):
if addresses == []:
return []
# Addresses point one instruction past the jump; offset them back by 1.
offset_addresses = [hex(addr - 1) for addr in addresses]
with RunTool([self.triple + "-addr2line", "--functions", "--inlines",