mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-30 05:48:03 +03:00
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
This commit is contained in:
parent
23665a7b93
commit
c0c6fc9e6d
29 changed files with 546 additions and 622 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue