diff options
Diffstat (limited to 'src/binaryen-shell.cpp')
-rw-r--r-- | src/binaryen-shell.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/binaryen-shell.cpp b/src/binaryen-shell.cpp index 3ec9e684b..564985c41 100644 --- a/src/binaryen-shell.cpp +++ b/src/binaryen-shell.cpp @@ -116,7 +116,8 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface { jmp_buf trapState; - void trap() override { + void trap(const char* why) override { + std::cerr << "[trap " << why << "]\n"; longjmp(trapState, 1); } }; |