From 4007491eecb88f5d5aa56209459d1040add10936 Mon Sep 17 00:00:00 2001 From: Charles Lehner Date: Thu, 24 Jul 2014 11:59:38 -0400 Subject: [PATCH] Print name of unsupport tool trap --- toolbox/toolbox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toolbox/toolbox.cpp b/toolbox/toolbox.cpp index 4a27847..04c229e 100644 --- a/toolbox/toolbox.cpp +++ b/toolbox/toolbox.cpp @@ -41,6 +41,7 @@ #include "sane.h" #include "utility.h" #include "loader.h" +#include "macos/traps.h" // yuck. TST.W d0 extern "C" void cpuSetFlagsNZ00NewW(UWO res); @@ -510,7 +511,8 @@ namespace ToolBox { break; default: - fprintf(stderr, "Unsupported tool trap: %04x\n", trap); + fprintf(stderr, "Unsupported tool trap: %04x (%s)\n", + trap, TrapName(trap)); fprintf(stderr, "pc: %08x\n", cpuGetPC()); exit(255); }