mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Debugger/Callstack: Replace Memory::GetPointer with Memory::IsValidVirtualAddress
This commit is contained in:
parent
3873b36db3
commit
b3b3dd7591
|
@ -37,10 +37,13 @@ void CallstackWidget::OnDebugModeEntered()
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
for (u32 addr = 0x10000000; addr >= sp; addr -= 4)
|
for (u32 addr = 0x10000000; addr >= sp; addr -= 4)
|
||||||
{
|
{
|
||||||
|
if (!Memory::IsValidVirtualAddress(addr))
|
||||||
|
break;
|
||||||
|
|
||||||
const u32 ret_addr = Memory::Read32(addr);
|
const u32 ret_addr = Memory::Read32(addr);
|
||||||
const u32 call_addr = ret_addr - 4; //get call address???
|
const u32 call_addr = ret_addr - 4; //get call address???
|
||||||
|
|
||||||
if (Memory::GetPointer(call_addr) == nullptr)
|
if (!Memory::IsValidVirtualAddress(call_addr))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* TODO (mattvail) clean me, move to debugger interface */
|
/* TODO (mattvail) clean me, move to debugger interface */
|
||||||
|
|
Loading…
Reference in a new issue