make "show pc" in dsp lle debugger actually work again
code cleanup in Hash.cpp git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6033 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
9c36f0bc88
commit
7b83640a28
|
@ -105,21 +105,6 @@ u32 HashFNV(const u8* ptr, int length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Another fast and decent hash
|
|
||||||
u32 HashFNV1(const u8* ptr, int length)
|
|
||||||
{
|
|
||||||
u32 hash = 0x811c9dc5;
|
|
||||||
|
|
||||||
for (int i = 0; i < length; i++)
|
|
||||||
{
|
|
||||||
hash *= 1677761;
|
|
||||||
hash ^= ptr[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
return(hash);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Stupid hash - but can't go back now :)
|
// Stupid hash - but can't go back now :)
|
||||||
// Don't use for new things. At least it's reasonably fast.
|
// Don't use for new things. At least it's reasonably fast.
|
||||||
u32 HashEctor(const u8* ptr, int length)
|
u32 HashEctor(const u8* ptr, int length)
|
||||||
|
|
|
@ -36,8 +36,7 @@ DSPDebuggerLLE* m_DebuggerFrame = NULL;
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(DSPDebuggerLLE, wxPanel)
|
BEGIN_EVENT_TABLE(DSPDebuggerLLE, wxPanel)
|
||||||
EVT_CLOSE(DSPDebuggerLLE::OnClose)
|
EVT_CLOSE(DSPDebuggerLLE::OnClose)
|
||||||
EVT_MENU_RANGE(ID_RUNTOOL, ID_STEPTOOL, DSPDebuggerLLE::OnChangeState)
|
EVT_MENU_RANGE(ID_RUNTOOL, ID_SHOWPCTOOL, DSPDebuggerLLE::OnChangeState)
|
||||||
EVT_MENU(ID_SHOWPCTOOL, DSPDebuggerLLE::OnShowPC)
|
|
||||||
EVT_TEXT_ENTER(ID_ADDRBOX, DSPDebuggerLLE::OnAddrBoxChange)
|
EVT_TEXT_ENTER(ID_ADDRBOX, DSPDebuggerLLE::OnAddrBoxChange)
|
||||||
EVT_LISTBOX(ID_SYMBOLLIST, DSPDebuggerLLE::OnSymbolListChange)
|
EVT_LISTBOX(ID_SYMBOLLIST, DSPDebuggerLLE::OnSymbolListChange)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
@ -155,12 +154,6 @@ void DSPDebuggerLLE::OnChangeState(wxCommandEvent& event)
|
||||||
m_mgr.Update();
|
m_mgr.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DSPDebuggerLLE::OnShowPC(wxCommandEvent& event)
|
|
||||||
{
|
|
||||||
// UpdateDisAsmListView will focus on PC
|
|
||||||
Refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
void DSPDebuggerLLE::Refresh()
|
void DSPDebuggerLLE::Refresh()
|
||||||
{
|
{
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
|
@ -90,7 +90,6 @@ private:
|
||||||
|
|
||||||
void OnClose(wxCloseEvent& event);
|
void OnClose(wxCloseEvent& event);
|
||||||
void OnChangeState(wxCommandEvent& event);
|
void OnChangeState(wxCommandEvent& event);
|
||||||
void OnShowPC(wxCommandEvent& event);
|
|
||||||
void OnRightClick(wxListEvent& event);
|
void OnRightClick(wxListEvent& event);
|
||||||
void OnDoubleClick(wxListEvent& event);
|
void OnDoubleClick(wxListEvent& event);
|
||||||
void OnAddrBoxChange(wxCommandEvent& event);
|
void OnAddrBoxChange(wxCommandEvent& event);
|
||||||
|
|
Loading…
Reference in New Issue