From a11eacf31795dcc12a8def4a3068820b43c78bac Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 21 Aug 2013 22:41:08 -0400 Subject: [PATCH] load error and global files --- bin/debugger.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/debugger.cpp b/bin/debugger.cpp index 145e5e6..7a5fe89 100644 --- a/bin/debugger.cpp +++ b/bin/debugger.cpp @@ -76,6 +76,8 @@ namespace { ToolMap tbrkMap; // tool breaks. std::map SymbolTable; + std::map ErrorTable; + std::map GlobalTable; std::map TrapTable; void hexdump(const uint8_t *data, ssize_t size, uint32_t address = 0) @@ -992,11 +994,8 @@ void Shell() Loader::Native::LoadDebugNames(SymbolTable); - //for (const auto &kv : SymbolTable) - //{ - // printf("%06x: %s\n", kv.second, kv.first.c_str()); - //} - + LoadTrapFile(MPW::RootDirPathForFile("Errors.text"), ErrorTable); + LoadTrapFile(MPW::RootDirPathForFile("Globals.text"), GlobalTable); LoadTrapFile(MPW::RootDirPathForFile("Traps.text"), TrapTable); // start it up