Skip to content

Commit

Permalink
Merge pull request #14066 from unknownbrackets/debugger-funcs
Browse files Browse the repository at this point in the history
Debugger: Populate funcs if disassembly open early
  • Loading branch information
hrydgard authored Feb 7, 2021
2 parents 93478e0 + ef24aa6 commit 9459690
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Windows/Debugger/Debugger_Disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,17 +851,17 @@ void CDisasm::SetDebugMode(bool _bDebug, bool switchPC)

void CDisasm::Show(bool bShow) {
if (deferredSymbolFill_ && bShow) {
if (g_symbolMap)
if (g_symbolMap) {
g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST), ST_FUNCTION);
deferredSymbolFill_ = false;
deferredSymbolFill_ = false;
}
}
Dialog::Show(bShow);
}

void CDisasm::NotifyMapLoaded() {
if (m_bShowState == SW_SHOW) {
if (g_symbolMap)
g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST), ST_FUNCTION);
if (m_bShowState != SW_HIDE && g_symbolMap) {
g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST), ST_FUNCTION);
} else {
deferredSymbolFill_ = true;
}
Expand Down

0 comments on commit 9459690

Please sign in to comment.