diff --git a/bin/template.cpp b/bin/template.cpp index b5a1bc5..1eeec80 100644 --- a/bin/template.cpp +++ b/bin/template.cpp @@ -1,8 +1,14 @@ #include "template.h" #include "debugger.h" +#include "debugger_internal.h" + +#include + namespace Debug { + using namespace Debug::Internal; + namespace { @@ -121,9 +127,17 @@ namespace Debug { { case kOSType: // print 4-cc code + fputc(' ', stdout); + fputs(ToolBox::TypeToString(value).c_str(), stdout); return; + case kOSErr: // print value + short name + { + printf(" %6d", (int16_t)value); + auto iter = ErrorTableInvert.find(value); + if (iter != ErrorTableInvert.end()) printf(" %s", iter->second.c_str()); + } return; case kPStringPtr: