mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-20 11:47:54 +00:00
Moved backtrace to ArmInterface
This commit is contained in:
parent
3324bc7da5
commit
4b64fcc9d6
8 changed files with 20 additions and 47 deletions
|
@ -267,22 +267,6 @@ void ARM_Unicorn::ClearExclusiveState() {}
|
|||
|
||||
void ARM_Unicorn::ClearInstructionCache() {}
|
||||
|
||||
void ARM_Unicorn::LogBacktrace() {
|
||||
VAddr fp = GetReg(29);
|
||||
VAddr lr = GetReg(30);
|
||||
VAddr sp = GetReg(13);
|
||||
VAddr pc = GetPC();
|
||||
LOG_ERROR(Core_ARM, "Backtrace, sp={:016X}, pc={:016X}", sp, pc);
|
||||
for (;;) {
|
||||
LOG_ERROR(Core_ARM, "{:016X}", lr);
|
||||
if (!fp) {
|
||||
break;
|
||||
}
|
||||
lr = Memory::Read64(fp + 8) - 4;
|
||||
fp = Memory::Read64(fp);
|
||||
}
|
||||
}
|
||||
|
||||
void ARM_Unicorn::RecordBreak(GDBStub::BreakpointAddress bkpt) {
|
||||
last_bkpt = bkpt;
|
||||
last_bkpt_hit = true;
|
||||
|
|
|
@ -40,7 +40,6 @@ public:
|
|||
void ClearInstructionCache() override;
|
||||
void PageTableChanged() override{};
|
||||
void RecordBreak(GDBStub::BreakpointAddress bkpt);
|
||||
void LogBacktrace() override;
|
||||
|
||||
private:
|
||||
uc_engine* uc{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue