mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
linux buildfixes...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2830 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7e7de0db66
commit
2a1b42705f
@ -144,10 +144,10 @@ void DSPDebuggerLLE::RebuildDisAsmListView()
|
|||||||
CurrentPC |= 0x8000;
|
CurrentPC |= 0x8000;
|
||||||
|
|
||||||
char Temp[256];
|
char Temp[256];
|
||||||
sprintf_s(Temp, 256, "0x%04x", CurrentPC);
|
sprintf(Temp, "0x%04x", CurrentPC);
|
||||||
|
|
||||||
char Temp2[256];
|
char Temp2[256];
|
||||||
sprintf_s(Temp2, 256, "0x%04x", dsp_imem_read(CurrentPC));
|
sprintf(Temp2, "0x%04x", dsp_imem_read(CurrentPC));
|
||||||
|
|
||||||
char* pOpcode = gd_dis_opcode(&gdg);
|
char* pOpcode = gd_dis_opcode(&gdg);
|
||||||
const char* pParameter = NULL;
|
const char* pParameter = NULL;
|
||||||
@ -180,13 +180,13 @@ void DSPDebuggerLLE::RebuildDisAsmListView()
|
|||||||
|
|
||||||
int Item = m_Disasm->InsertItem(gdg.pc, wxEmptyString);
|
int Item = m_Disasm->InsertItem(gdg.pc, wxEmptyString);
|
||||||
m_Disasm->SetItem(Item, COLUMN_BP, wxEmptyString);
|
m_Disasm->SetItem(Item, COLUMN_BP, wxEmptyString);
|
||||||
m_Disasm->SetItem(Item, COLUMN_FUNCTION, pFunctionName);
|
m_Disasm->SetItem(Item, COLUMN_FUNCTION, wxString::FromAscii(pFunctionName));
|
||||||
m_Disasm->SetItem(Item, COLUMN_ADDRESS, Temp);
|
m_Disasm->SetItem(Item, COLUMN_ADDRESS, wxString::FromAscii(Temp));
|
||||||
m_Disasm->SetItem(Item, COLUMN_MNEMONIC, Temp2);
|
m_Disasm->SetItem(Item, COLUMN_MNEMONIC, wxString::FromAscii(Temp2));
|
||||||
m_Disasm->SetItem(Item, COLUMN_OPCODE, pOpcode);
|
m_Disasm->SetItem(Item, COLUMN_OPCODE, wxString::FromAscii(pOpcode));
|
||||||
m_Disasm->SetItem(Item, COLUMN_EXT, pExtension);
|
m_Disasm->SetItem(Item, COLUMN_EXT, wxString::FromAscii(pExtension));
|
||||||
|
|
||||||
if (!_stricmp(pOpcode, "CALL"))
|
if (!strcasecmp(pOpcode, "CALL"))
|
||||||
{
|
{
|
||||||
u32 FunctionAddress = -1;
|
u32 FunctionAddress = -1;
|
||||||
sscanf(pParameter, "0x%04x", &FunctionAddress);
|
sscanf(pParameter, "0x%04x", &FunctionAddress);
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "Common.h"
|
||||||
|
|
||||||
typedef struct gd_globals_t
|
typedef struct gd_globals_t
|
||||||
{
|
{
|
||||||
bool print_tabs;
|
bool print_tabs;
|
||||||
|
@ -202,7 +202,7 @@ THREAD_RETURN dsp_thread_debug(void* lpParameter)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Sleep(100);
|
SLEEP(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user