Skip to content

Commit f8e549a

Browse files
committed
Add missing AVM_PRINT_PROCESS_CRASH_DUMPS to JIT
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 97d684b commit f8e549a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libAtomVM/jit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ static Context *jit_handle_error(Context *ctx, JITState *jit_state, int offset)
207207
}
208208

209209
// Do not print crash dump if reason is normal or shutdown.
210+
#ifdef AVM_PRINT_PROCESS_CRASH_DUMPS
210211
if (ctx->x[0] != LOWERCASE_EXIT_ATOM || (ctx->x[1] != NORMAL_ATOM && ctx->x[1] != SHUTDOWN_ATOM)) {
211212
context_dump(ctx);
212213
}
214+
#endif
213215

214216
if (ctx->x[0] == LOWERCASE_EXIT_ATOM) {
215217
ctx->exit_reason = ctx->x[1];

0 commit comments

Comments
 (0)