Some sanity checks in the debugger.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@524 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a56fcd4e98
commit
4c6d684a9f
|
@ -538,26 +538,32 @@ void CCodeWindow::OnAddrBoxChange(wxCommandEvent& event)
|
||||||
void CCodeWindow::OnCallstackListChange(wxCommandEvent& event)
|
void CCodeWindow::OnCallstackListChange(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
int index = callstack->GetSelection();
|
int index = callstack->GetSelection();
|
||||||
|
if (index >= 0) {
|
||||||
u32 address = (u32)(u64)(callstack->GetClientData(index));
|
u32 address = (u32)(u64)(callstack->GetClientData(index));
|
||||||
if (address)
|
if (address)
|
||||||
JumpToAddress(address);
|
JumpToAddress(address);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CCodeWindow::OnCallersListChange(wxCommandEvent& event)
|
void CCodeWindow::OnCallersListChange(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
int index = callers->GetSelection();
|
int index = callers->GetSelection();
|
||||||
|
if (index >= 0) {
|
||||||
u32 address = (u32)(u64)(callers->GetClientData(index));
|
u32 address = (u32)(u64)(callers->GetClientData(index));
|
||||||
if (address)
|
if (address)
|
||||||
JumpToAddress(address);
|
JumpToAddress(address);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CCodeWindow::OnCallsListChange(wxCommandEvent& event)
|
void CCodeWindow::OnCallsListChange(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
int index = calls->GetSelection();
|
int index = calls->GetSelection();
|
||||||
|
if (index >= 0) {
|
||||||
u32 address = (u32)(u64)(calls->GetClientData(index));
|
u32 address = (u32)(u64)(calls->GetClientData(index));
|
||||||
if (address)
|
if (address)
|
||||||
JumpToAddress(address);
|
JumpToAddress(address);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CCodeWindow::Update()
|
void CCodeWindow::Update()
|
||||||
{
|
{
|
||||||
|
@ -635,13 +641,14 @@ void CCodeWindow::UpdateButtonStates()
|
||||||
void CCodeWindow::OnSymbolListChange(wxCommandEvent& event)
|
void CCodeWindow::OnSymbolListChange(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
int index = symbols->GetSelection();
|
int index = symbols->GetSelection();
|
||||||
|
if (index >= 0) {
|
||||||
Symbol* pSymbol = static_cast<Symbol *>(symbols->GetClientData(index));
|
Symbol* pSymbol = static_cast<Symbol *>(symbols->GetClientData(index));
|
||||||
|
|
||||||
if (pSymbol != NULL)
|
if (pSymbol != NULL)
|
||||||
{
|
{
|
||||||
JumpToAddress(pSymbol->address);
|
JumpToAddress(pSymbol->address);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CCodeWindow::OnSymbolListContextMenu(wxContextMenuEvent& event)
|
void CCodeWindow::OnSymbolListContextMenu(wxContextMenuEvent& event)
|
||||||
{
|
{
|
||||||
|
|
|
@ -168,13 +168,14 @@ void CMemoryWindow::NotifyMapLoaded()
|
||||||
void CMemoryWindow::OnSymbolListChange(wxCommandEvent& event)
|
void CMemoryWindow::OnSymbolListChange(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
int index = symbols->GetSelection();
|
int index = symbols->GetSelection();
|
||||||
|
if (index >= 0) {
|
||||||
Symbol* pSymbol = static_cast<Symbol *>(symbols->GetClientData(index));
|
Symbol* pSymbol = static_cast<Symbol *>(symbols->GetClientData(index));
|
||||||
|
|
||||||
if (pSymbol != NULL)
|
if (pSymbol != NULL)
|
||||||
{
|
{
|
||||||
memview->Center(pSymbol->address);
|
memview->Center(pSymbol->address);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CMemoryWindow::OnHostMessage(wxCommandEvent& event)
|
void CMemoryWindow::OnHostMessage(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue