mirror of https://github.com/PCSX2/pcsx2.git
pseudonym just made a patch with some changes to the debugger so it works again.
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@654 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
parent
9223be5a30
commit
d55f680bde
|
@ -610,14 +610,18 @@ void disR5900Fasm(string& output, u32 code, u32 pc)
|
|||
{
|
||||
string dbuf;
|
||||
char obuf[48];
|
||||
const R5900::OPCODE *op;
|
||||
|
||||
const u32 scode = cpuRegs.code;
|
||||
opcode_addr = pc;
|
||||
cpuRegs.code = code;
|
||||
op = &R5900::OpcodeTables::tbl_Standard[(code) >> 26];
|
||||
while (op->getsubclass)
|
||||
op = &op->getsubclass();
|
||||
|
||||
sprintf(obuf, "%08X:\t", pc );
|
||||
output.assign( obuf );
|
||||
R5900::OpcodeTables::tbl_Standard[(code) >> 26].disasm( output );
|
||||
op->disasm( output );
|
||||
|
||||
cpuRegs.code = scode;
|
||||
}
|
||||
|
@ -706,7 +710,7 @@ void COP1_Unknown( string& output )
|
|||
|
||||
// sap! it stands for string append. It's not a friendly name but for now it makes
|
||||
// the copy-paste marathon of code below more readable!
|
||||
#define _sap( str ) ssappendf( output, str, params
|
||||
#define _sap( str ) ssappendf( output, str,
|
||||
|
||||
//********************* Standard Opcodes***********************
|
||||
void J( string& output ) { output += "j\t"; jump_decode(output);}
|
||||
|
|
|
@ -375,6 +375,7 @@ void EnterRunningState(HWND hDlg)
|
|||
EnableWindow(GetDlgItem(hDlg, IDC_DEBUG_STEP_EE), FALSE);
|
||||
EnableWindow(GetDlgItem(hDlg, IDC_DEBUG_STEP), FALSE);
|
||||
EnableWindow(GetDlgItem(hDlg, IDC_DEBUG_SKIP), FALSE);
|
||||
OpenPlugins(NULL);
|
||||
}
|
||||
|
||||
static
|
||||
|
@ -655,6 +656,7 @@ void RefreshDebugger(void)
|
|||
std::string str;
|
||||
R5900::disR5900Fasm(str, *mem, t);
|
||||
str.copy( syscall_str, 256 );
|
||||
syscall_str[str.length()] = 0;
|
||||
}
|
||||
}
|
||||
SendMessage(hWnd_debugdisasm, LB_ADDSTRING, 0, (LPARAM)syscall_str );
|
||||
|
|
Loading…
Reference in New Issue