Moved backtrace to ArmInterface

This commit is contained in:
David Marcec 2018-12-19 14:10:51 +11:00
parent 5102c91256
commit 08d5663cb8
8 changed files with 20 additions and 47 deletions

View file

@ -625,8 +625,9 @@ static void Break(u32 reason, u64 info1, u64 info2) {
"Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}",
reason, info1, info2);
handle_debug_buffer(info1, info2);
GetCurrentThread()->LogBacktrace();
Core::System::GetInstance()
.ArmInterface(static_cast<std::size_t>(GetCurrentThread()->GetProcessorID()))
.LogBacktrace();
ASSERT(false);
Core::CurrentProcess()->PrepareForTermination();

View file

@ -388,10 +388,6 @@ bool Thread::InvokeWakeupCallback(ThreadWakeupReason reason, SharedPtr<Thread> t
return wakeup_callback(reason, std::move(thread), std::move(object), index);
}
void Thread::LogBacktrace() {
Core::System::GetInstance().ArmInterface(processor_id).LogBacktrace();
}
////////////////////////////////////////////////////////////////////////////////////////////////////
/**

View file

@ -240,11 +240,6 @@ public:
return status == ThreadStatus::WaitSynchAll;
}
/**
* Logs the backtrace for the current thread
*/
void LogBacktrace();
ThreadContext& GetContext() {
return context;
}