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) {
|
if (isMemory) {
|
||||||
dest.Write(L"-");
|
dest.Write(L"-");
|
||||||
} else {
|
} else {
|
||||||
|
if (!cpu->isAlive())
|
||||||
|
break;
|
||||||
char temp[256];
|
char temp[256];
|
||||||
disasm->getOpcodeText(displayedBreakPoints_[index].addr, temp);
|
disasm->getOpcodeText(displayedBreakPoints_[index].addr, temp);
|
||||||
dest.Write("%s",temp);
|
dest.Write("%s",temp);
|
||||||
|
@ -687,6 +689,8 @@ wxString StackFramesList::getColumnText(int item, int col) const
|
||||||
break;
|
break;
|
||||||
case SF_CUROPCODE:
|
case SF_CUROPCODE:
|
||||||
{
|
{
|
||||||
|
if (!cpu->isAlive())
|
||||||
|
break;
|
||||||
char temp[512];
|
char temp[512];
|
||||||
disassembly->getOpcodeText(frame.pc,temp);
|
disassembly->getOpcodeText(frame.pc,temp);
|
||||||
dest.Write("%s",temp);
|
dest.Write("%s",temp);
|
||||||
|
|
Loading…
Reference in New Issue