From 132b55d6beab8ccc464f2bb33fe19cf81eaa8c60 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 2 Apr 2016 17:48:09 +0000 Subject: [PATCH] coredevice: format backtrace RA as +0xN, not 0xN. The absolute address is somewhere in the 0x4000000 range; the one that is displayed is an offset from the shared object base. --- artiq/coredevice/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/exceptions.py b/artiq/coredevice/exceptions.py index b1ba94ff3..9137a7ffe 100644 --- a/artiq/coredevice/exceptions.py +++ b/artiq/coredevice/exceptions.py @@ -38,7 +38,7 @@ class CoreException: elif address == last_address: formatted_address = " (inlined)" else: - formatted_address = " (RA=0x{:x})".format(address) + formatted_address = " (RA=+0x{:x})".format(address) last_address = address filename = filename.replace(artiq_dir, "")