summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-12-03 10:13:48 +0100
committerDavid Marcec <dmarcecguzman@gmail.com>2018-12-03 10:13:48 +0100
commit5102c912569a29259ec26aa254d4598e81205a17 (patch)
treed7437b2cf2fd53771735a2938174a4aaaed03e4e /src/core/hle
parentPrint backtrace on svcBreak (diff)
downloadyuzu-5102c912569a29259ec26aa254d4598e81205a17.tar
yuzu-5102c912569a29259ec26aa254d4598e81205a17.tar.gz
yuzu-5102c912569a29259ec26aa254d4598e81205a17.tar.bz2
yuzu-5102c912569a29259ec26aa254d4598e81205a17.tar.lz
yuzu-5102c912569a29259ec26aa254d4598e81205a17.tar.xz
yuzu-5102c912569a29259ec26aa254d4598e81205a17.tar.zst
yuzu-5102c912569a29259ec26aa254d4598e81205a17.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/thread.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index a044db6e7..a276812f0 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -389,20 +389,7 @@ bool Thread::InvokeWakeupCallback(ThreadWakeupReason reason, SharedPtr<Thread> t
}
void Thread::LogBacktrace() {
- auto& system = Core::System::GetInstance();
- VAddr fp = system.ArmInterface(processor_id).GetReg(29);
- VAddr lr = system.ArmInterface(processor_id).GetReg(30);
- VAddr sp = system.ArmInterface(processor_id).GetReg(13);
- VAddr pc = system.ArmInterface(processor_id).GetPC();
- LOG_ERROR(Debug, "Backtrace, sp={:016X}, pc={:016X}", sp, pc);
- for (std::size_t i = 0; i < 256; i++) {
- LOG_ERROR(Debug, "{:016X}", lr - 4);
- if (!fp) {
- break;
- }
- lr = Memory::Read64(fp + 8);
- fp = Memory::Read64(fp);
- }
+ Core::System::GetInstance().ArmInterface(processor_id).LogBacktrace();
}
////////////////////////////////////////////////////////////////////////////////////////////////////