summaryrefslogtreecommitdiffstatshomepage
path: root/qemu-arm/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-arm/main.c')
-rw-r--r--qemu-arm/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-arm/main.c b/qemu-arm/main.c
index b6ff73980c..aa7247b446 100644
--- a/qemu-arm/main.c
+++ b/qemu-arm/main.c
@@ -1,4 +1,5 @@
#include <stdint.h>
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
@@ -59,4 +60,6 @@ mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs)
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
void nlr_jump_fail(void *val) {
+ printf("uncaught NLR\n");
+ exit(1);
}