Update Debugger-Symbols.cpp

Fix capitalization, fix TODO comment
This commit is contained in:
Derek "Turtle" Roe 2021-03-17 22:40:52 -05:00
parent 949f99c415
commit 8ba0e0a427
1 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ LRESULT CDebugSymbols::OnListDblClicked(NMHDR* pNMHDR)
int nSelectedCol = -1; int nSelectedCol = -1;
// hit test for column // Hit test for column
POINT mousePt; POINT mousePt;
RECT listRect; RECT listRect;
@ -153,11 +153,11 @@ LRESULT CDebugSymbols::OnListDblClicked(NMHDR* pNMHDR)
{ {
case SymbolsListView_Col_Address: case SymbolsListView_Col_Address:
// Open it in memory viewer/commands viewer // Open it in memory viewer/commands viewer
if (symbol.m_Type == SYM_CODE) // code if (symbol.m_Type == SYM_CODE) // Code
{ {
m_Debugger->Debug_ShowCommandsLocation(symbol.m_Address, true); m_Debugger->Debug_ShowCommandsLocation(symbol.m_Address, true);
} }
else // data/number else // Data/number
{ {
m_Debugger->Debug_ShowMemoryLocation(symbol.m_Address, true); m_Debugger->Debug_ShowMemoryLocation(symbol.m_Address, true);
} }
@ -167,7 +167,7 @@ LRESULT CDebugSymbols::OnListDblClicked(NMHDR* pNMHDR)
{ {
ValueType t = (ValueType)m_SetValueDlg.GetEnteredData(); ValueType t = (ValueType)m_SetValueDlg.GetEnteredData();
//Is there a better way? // TODO: Is there a better way?
m_Debugger->SymbolTable()->RemoveSymbolById(id); m_Debugger->SymbolTable()->RemoveSymbolById(id);
m_Debugger->SymbolTable()->AddSymbol(t, symbol.m_Address, symbol.m_Name, symbol.m_Description); m_Debugger->SymbolTable()->AddSymbol(t, symbol.m_Address, symbol.m_Name, symbol.m_Description);
} }