From ee1ef551bc8521c19de481b13c5d1195aee69e9f Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 10 Jan 2016 18:04:10 +0000 Subject: [PATCH] Fix symbolizer invocation with no addresses. --- artiq/compiler/targets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/compiler/targets.py b/artiq/compiler/targets.py index 506a52bea..d6b3aa8c2 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -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",