[Debugger] Clean up compiler warnings
This commit is contained in:
parent
1789dccda2
commit
03ba3640b5
|
@ -180,7 +180,7 @@ void CCPULog::DumpToFile(const char* path)
|
||||||
szCmdArgs = "";
|
szCmdArgs = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(fp, "%08X: %08X %s %s\n", state->pc, state->opcode, szCmdName, szCmdArgs);
|
fprintf(fp, "%08X: %08X %s %s\n", state->pc, state->opcode.Hex, szCmdName, szCmdArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
|
@ -183,7 +183,7 @@ LRESULT CDebugCPULogView::OnScroll(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam,
|
||||||
{
|
{
|
||||||
WORD type = LOWORD(wParam);
|
WORD type = LOWORD(wParam);
|
||||||
HWND hScrollbar = (HWND)lParam;
|
HWND hScrollbar = (HWND)lParam;
|
||||||
WORD scrlId = ::GetDlgCtrlID(hScrollbar);
|
WORD scrlId = (WORD)::GetDlgCtrlID(hScrollbar);
|
||||||
|
|
||||||
SCROLLINFO scrollInfo;
|
SCROLLINFO scrollInfo;
|
||||||
scrollInfo.cbSize = sizeof(SCROLLINFO);
|
scrollInfo.cbSize = sizeof(SCROLLINFO);
|
||||||
|
@ -212,7 +212,7 @@ LRESULT CDebugCPULogView::OnScroll(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDebugCPULogView::InterceptMouseWheel(WPARAM wParam, LPARAM lParam)
|
void CDebugCPULogView::InterceptMouseWheel(WPARAM wParam, LPARAM /*lParam*/)
|
||||||
{
|
{
|
||||||
int nScroll = -((short)HIWORD(wParam) / WHEEL_DELTA);
|
int nScroll = -((short)HIWORD(wParam) / WHEEL_DELTA);
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ void CDebugCPULogView::OnExitSizeMove(void)
|
||||||
|
|
||||||
void CDebugCPULogView::ToggleLoggingEnabled(void)
|
void CDebugCPULogView::ToggleLoggingEnabled(void)
|
||||||
{
|
{
|
||||||
bool bEnableLogging = m_EnabledChk.GetCheck();
|
bool bEnableLogging = (m_EnabledChk.GetCheck() == BST_CHECKED);
|
||||||
|
|
||||||
m_BuffSizeEdit.EnableWindow(!bEnableLogging);
|
m_BuffSizeEdit.EnableWindow(!bEnableLogging);
|
||||||
|
|
||||||
|
@ -390,7 +390,6 @@ void CDebugCPULogView::Export(void)
|
||||||
|
|
||||||
OPENFILENAME openfilename;
|
OPENFILENAME openfilename;
|
||||||
char filePath[255];
|
char filePath[255];
|
||||||
char drive[_MAX_DRIVE], dir[_MAX_DIR], fname[_MAX_FNAME], ext[_MAX_EXT];
|
|
||||||
|
|
||||||
memset(&filePath, 0, sizeof(filePath));
|
memset(&filePath, 0, sizeof(filePath));
|
||||||
memset(&openfilename, 0, sizeof(openfilename));
|
memset(&openfilename, 0, sizeof(openfilename));
|
||||||
|
|
|
@ -1453,7 +1453,7 @@ LRESULT CDebugCommandsView::OnListBoxClicked(WORD /*wNotifyCode*/, WORD wID, HWN
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT CDebugCommandsView::OnActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
LRESULT CDebugCommandsView::OnActivate(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& /*bHandled*/)
|
||||||
{
|
{
|
||||||
if (!m_Attached)
|
if (!m_Attached)
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,16 +80,16 @@ LRESULT CDebugStackView::OnClicked(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCt
|
||||||
|
|
||||||
void CDebugStackView::Refresh()
|
void CDebugStackView::Refresh()
|
||||||
{
|
{
|
||||||
|
if (g_Reg == NULL)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_StackList.SetRedraw(FALSE);
|
m_StackList.SetRedraw(FALSE);
|
||||||
m_StackList.DeleteAllItems();
|
m_StackList.DeleteAllItems();
|
||||||
|
|
||||||
uint32_t spBase;
|
uint32_t spBase = g_Reg->m_GPR[29].UW[0];
|
||||||
|
m_SPStatic.SetWindowTextA(stdstr_f("SP: %08X", spBase).c_str());
|
||||||
if (g_Reg != NULL)
|
|
||||||
{
|
|
||||||
spBase = g_Reg->m_GPR[29].UW[0];
|
|
||||||
m_SPStatic.SetWindowTextA(stdstr_f("SP: %08X", spBase).c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
CSymbols::EnterCriticalSection();
|
CSymbols::EnterCriticalSection();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue