diff options
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindow.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp index e892ede0a6..918ecaf40f 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp @@ -645,7 +645,15 @@ void CCodeWindow::OnSymbolListChange(wxCommandEvent& event) Symbol* pSymbol = static_cast<Symbol *>(symbols->GetClientData(index));
if (pSymbol != NULL)
{
- JumpToAddress(pSymbol->address);
+ if(pSymbol->type == Symbol::SYMBOL_DATA)
+ {
+ if(m_MemoryWindow && m_MemoryWindow->IsVisible())
+ m_MemoryWindow->JumpToAddress(pSymbol->address);
+ }
+ else
+ {
+ JumpToAddress(pSymbol->address);
+ }
}
}
}
|
