void CDebugger::ActivateView(unsigned int nView) { if(m_nCurrentView == nView) return; if(m_nCurrentView != -1) { SaveBytesPerLine(); SaveViewLayout(); GetCurrentView()->Hide(); } m_findCallersRequestConnection.disconnect(); m_nCurrentView = nView; LoadViewLayout(); LoadBytesPerLine(); UpdateTitle(); { auto biosDebugInfoProvider = GetCurrentView()->GetBiosDebugInfoProvider(); m_pFunctionsView->SetContext(GetCurrentView()->GetContext(), biosDebugInfoProvider); m_threadsView->SetContext(GetCurrentView()->GetContext(), biosDebugInfoProvider); } if(GetDisassemblyWindow()->IsVisible()) { GetDisassemblyWindow()->SetFocus(); } m_findCallersRequestConnection = GetCurrentView()->GetDisassemblyWindow()->GetDisAsm()->FindCallersRequested.connect( [&] (uint32 address) { OnFindCallersRequested(address); }); }
void CDebugger::ActivateView(unsigned int nView) { if(m_nCurrentView == nView) return; if(m_nCurrentView != -1) { SaveViewLayout(); GetCurrentView()->Hide(); } m_nCurrentView = nView; LoadViewLayout(); UpdateTitle(); { auto biosDebugInfoProvider = GetCurrentView()->GetBiosDebugInfoProvider(); m_pFunctionsView->SetContext(GetCurrentView()->GetContext(), biosDebugInfoProvider); m_threadsView->SetContext(GetCurrentView()->GetContext(), biosDebugInfoProvider); } if(GetDisassemblyWindow()->IsVisible()) { GetDisassemblyWindow()->SetFocus(); } }
void CDebugger::LoadSettings() { LoadViewLayout(); LoadBytesPerLine(); }
void CDebugger::LoadSettings() { LoadViewLayout(); }