runtime: save now when terminating with exception

This commit is contained in:
Sebastien Bourdeauducq 2016-06-19 19:07:09 +08:00
parent 2ae20fbc4d
commit 8e308481c1
1 changed files with 2 additions and 0 deletions

View File

@ -423,6 +423,8 @@ void __artiq_terminate(struct artiq_exception *artiq_exn,
{ {
struct msg_exception msg; struct msg_exception msg;
now_save();
msg.type = MESSAGE_TYPE_EXCEPTION; msg.type = MESSAGE_TYPE_EXCEPTION;
msg.exception = artiq_exn; msg.exception = artiq_exn;
msg.backtrace = backtrace; msg.backtrace = backtrace;