mirror of https://github.com/PCSX2/pcsx2.git
debugger: Fix opcode lookup crash
This commit is contained in:
parent
1db5e0c0bf
commit
729218ec4b
|
@ -255,6 +255,8 @@ wxString BreakpointList::getColumnText(int item, int col) const
|
|||
if (isMemory) {
|
||||
dest.Write(L"-");
|
||||
} else {
|
||||
if (!cpu->isAlive())
|
||||
break;
|
||||
char temp[256];
|
||||
disasm->getOpcodeText(displayedBreakPoints_[index].addr, temp);
|
||||
dest.Write("%s",temp);
|
||||
|
@ -687,6 +689,8 @@ wxString StackFramesList::getColumnText(int item, int col) const
|
|||
break;
|
||||
case SF_CUROPCODE:
|
||||
{
|
||||
if (!cpu->isAlive())
|
||||
break;
|
||||
char temp[512];
|
||||
disassembly->getOpcodeText(frame.pc,temp);
|
||||
dest.Write("%s",temp);
|
||||
|
|
Loading…
Reference in New Issue