forked from M-Labs/artiq
Fix symbolizer invocation with no addresses.
This commit is contained in:
parent
d436093317
commit
ee1ef551bc
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue