diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-03-26 20:45:19 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-03-26 22:01:07 -0400 |
commit | efbfc2b1abe3a3070992fa4c6df7c4cd5befb386 (patch) | |
tree | 41295991402883f3add35ea4b45596375fa3b8e8 /scripts/avrsim.py | |
parent | d4f09bc20d44249855d84183369f34c64c84864c (diff) | |
download | kutter-efbfc2b1abe3a3070992fa4c6df7c4cd5befb386.tar.gz kutter-efbfc2b1abe3a3070992fa4c6df7c4cd5befb386.tar.xz kutter-efbfc2b1abe3a3070992fa4c6df7c4cd5befb386.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'scripts/avrsim.py')
-rwxr-xr-x | scripts/avrsim.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |