summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/src/MemoryWindow.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-08-24 18:50:51 +0000
committerhrydgard <hrydgard@gmail.com>2008-08-24 18:50:51 +0000
commitc0c6fc9e6daa10a5a30e4dfb3444d29a0baf482c (patch)
tree3d54352ddf3fdefb3a4e16fc65d73e609d296e97 /Source/Core/DebuggerWX/src/MemoryWindow.cpp
parent23665a7b9366a567357ebaaec7ebf73a6735da8b (diff)
Ok, part 2/2 of the symbol code rewrite. You can now create and use function signature files. A monkey ball signature file included. Now to add some cooler features...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@294 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/src/MemoryWindow.cpp')
-rw-r--r--Source/Core/DebuggerWX/src/MemoryWindow.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/DebuggerWX/src/MemoryWindow.cpp b/Source/Core/DebuggerWX/src/MemoryWindow.cpp
index 7e276d8b5a..1c7906025d 100644
--- a/Source/Core/DebuggerWX/src/MemoryWindow.cpp
+++ b/Source/Core/DebuggerWX/src/MemoryWindow.cpp
@@ -30,7 +30,7 @@
#include "Host.h"
#include "Debugger/PPCDebugInterface.h"
-#include "Debugger/Debugger_SymbolMap.h"
+#include "PowerPC/SymbolDB.h"
#include "Core.h"
#include "LogManager.h"
@@ -148,18 +148,18 @@ void CMemoryWindow::NotifyMapLoaded()
{
symbols->Show(false); // hide it for faster filling
symbols->Clear();
+ /*
#ifdef _WIN32
- const Debugger::XVectorSymbol& syms = Debugger::AccessSymbols();
-
- for (int i = 0; i < (int)syms.size(); i++)
+ const FunctionDB::XFuncMap &syms = g_symbolDB.Symbols();
+ for (FuntionDB::XFuncMap::iterator iter = syms.begin(); iter != syms.end(); ++iter)
{
- int idx = symbols->Append(syms[i].GetName().c_str());
- symbols->SetClientData(idx, (void*)&syms[i]);
+ int idx = symbols->Append(iter->second.name.c_str());
+ symbols->SetClientData(idx, (void*)&iter->second);
}
//
#endif
-
+*/
symbols->Show(true);
Update();
}
@@ -167,11 +167,11 @@ void CMemoryWindow::NotifyMapLoaded()
void CMemoryWindow::OnSymbolListChange(wxCommandEvent& event)
{
int index = symbols->GetSelection();
- Debugger::Symbol* pSymbol = static_cast<Debugger::Symbol*>(symbols->GetClientData(index));
+ Symbol* pSymbol = static_cast<Symbol *>(symbols->GetClientData(index));
if (pSymbol != NULL)
{
- memview->Center(pSymbol->vaddress);
+ memview->Center(pSymbol->address);
}
}