linux buildfixes...

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2830 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-04-02 13:07:26 +00:00
parent 7e7de0db66
commit 2a1b42705f
3 changed files with 11 additions and 9 deletions

View File

@ -144,10 +144,10 @@ void DSPDebuggerLLE::RebuildDisAsmListView()
CurrentPC |= 0x8000;
char Temp[256];
sprintf_s(Temp, 256, "0x%04x", CurrentPC);
sprintf(Temp, "0x%04x", CurrentPC);
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);
const char* pParameter = NULL;
@ -180,13 +180,13 @@ void DSPDebuggerLLE::RebuildDisAsmListView()
int Item = m_Disasm->InsertItem(gdg.pc, wxEmptyString);
m_Disasm->SetItem(Item, COLUMN_BP, wxEmptyString);
m_Disasm->SetItem(Item, COLUMN_FUNCTION, pFunctionName);
m_Disasm->SetItem(Item, COLUMN_ADDRESS, Temp);
m_Disasm->SetItem(Item, COLUMN_MNEMONIC, Temp2);
m_Disasm->SetItem(Item, COLUMN_OPCODE, pOpcode);
m_Disasm->SetItem(Item, COLUMN_EXT, pExtension);
m_Disasm->SetItem(Item, COLUMN_FUNCTION, wxString::FromAscii(pFunctionName));
m_Disasm->SetItem(Item, COLUMN_ADDRESS, wxString::FromAscii(Temp));
m_Disasm->SetItem(Item, COLUMN_MNEMONIC, wxString::FromAscii(Temp2));
m_Disasm->SetItem(Item, COLUMN_OPCODE, wxString::FromAscii(pOpcode));
m_Disasm->SetItem(Item, COLUMN_EXT, wxString::FromAscii(pExtension));
if (!_stricmp(pOpcode, "CALL"))
if (!strcasecmp(pOpcode, "CALL"))
{
u32 FunctionAddress = -1;
sscanf(pParameter, "0x%04x", &FunctionAddress);

View File

@ -25,6 +25,8 @@
#pragma once
#include "Common.h"
typedef struct gd_globals_t
{
bool print_tabs;

View File

@ -202,7 +202,7 @@ THREAD_RETURN dsp_thread_debug(void* lpParameter)
}
else
{
Sleep(100);
SLEEP(100);
}
}
#endif