Debugger: Add empty watch tab for debugger.

Currently, there's nothing shown here.
This commit is contained in:
Unknown W. Brackets committed 2023-04-09 00:01:42 -07:00
1 parent f708ab2965
commit 879e91dbf6
7 files changed
+155

No files matched your search

+7
View File
@@ -172,6 +172,9 @@ CDisasm::CDisasm(HINSTANCE _hInstance, HWND _hParent, DebugInterface *_cpu) : Di
moduleList->loadModules();
bottomTabs->AddTab(moduleList->GetHandle(),L"Modules");
watchList_ = new CtrlWatchList(GetDlgItem(m_hDlg, IDC_WATCHLIST), cpu);
bottomTabs->AddTab(watchList_->GetHandle(), L"Watch");
bottomTabs->SetShowTabTitles(g_Config.bShowBottomTabTitles);
bottomTabs->ShowTab(memHandle);
@@ -369,6 +372,9 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
case IDC_MODULELIST:
SetWindowLongPtr(m_hDlg, DWLP_MSGRESULT, moduleList->HandleNotify(lParam));
return TRUE;
case IDC_WATCHLIST:
SetWindowLongPtr(m_hDlg, DWLP_MSGRESULT, watchList_->HandleNotify(lParam));
return TRUE;
case IDC_DEBUG_BOTTOMTABS:
bottomTabs->HandleNotify(lParam);
break;
@@ -795,6 +801,7 @@ void CDisasm::SetDebugMode(bool _bDebug, bool switchPC)
threadList->reloadThreads();
stackTraceView->loadStackTrace();
moduleList->loadModules();
watchList_->RefreshValues();
EnableWindow(GetDlgItem(hDlg, IDC_STOPGO), TRUE);
EnableWindow(GetDlgItem(hDlg, IDC_STEP), TRUE);