From efbfc2b1abe3a3070992fa4c6df7c4cd5befb386 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 26 Mar 2017 20:45:19 -0400 Subject: [PATCH] avrsim: Catch simulation errors Request that simulavr throw an exception on a fatal emulation error instead of exiting the process. Signed-off-by: Kevin O'Connor --- scripts/avrsim.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/avrsim.py b/scripts/avrsim.py index dfdb94b5..93272501 100755 --- a/scripts/avrsim.py +++ b/scripts/avrsim.py @@ -192,6 +192,7 @@ def main(): dev.Load(elffile) dev.SetClockFreq(SIMULAVR_FREQ / speed) sc.Add(dev) + pysimulavr.cvar.sysConHandler.SetUseExit(False) trace.load_options() # Do optional real-time pacing