mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-13 22:37:02 +00:00
debugger: Add symbol support to PPC stack traces
Also moved the declaration to precompiled.h instead of redefining it wherever it is used
This commit is contained in:
parent
252429933f
commit
47f1dcf996
6 changed files with 16 additions and 13 deletions
|
|
@ -277,12 +277,10 @@ void DebugPPCThreadsWindow::RefreshThreadList()
|
|||
m_thread_list->SetScrollPos(0, scrollPos, true);
|
||||
}
|
||||
|
||||
void DebugLogStackTrace(OSThread_t* thread, MPTR sp);
|
||||
|
||||
void DebugPPCThreadsWindow::DumpStackTrace(OSThread_t* thread)
|
||||
{
|
||||
cemuLog_log(LogType::Force, "Dumping stack trace for thread {0:08x} LR: {1:08x}", memory_getVirtualOffsetFromPointer(thread), _swapEndianU32(thread->context.lr));
|
||||
DebugLogStackTrace(thread, _swapEndianU32(thread->context.gpr[1]));
|
||||
DebugLogStackTrace(thread, _swapEndianU32(thread->context.gpr[1]), true);
|
||||
}
|
||||
|
||||
void DebugPPCThreadsWindow::PresentProfileResults(OSThread_t* thread, const std::unordered_map<VAddr, uint32>& samples)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue