@@ -69,7 +69,7 @@ sint32 ScoreStackTrace(OSThread_t* thread, MPTR sp)
6969 return score;
7070}
7171
72- void DebugLogStackTrace (OSThread_t* thread, MPTR sp, bool printSymbols )
72+ void DebugLogStackTrace (OSThread_t* thread, MPTR sp)
7373{
7474 // sp might not point to a valid stackframe
7575 // scan stack and evaluate which sp is most likely the beginning of the stackframe
@@ -88,10 +88,7 @@ void DebugLogStackTrace(OSThread_t* thread, MPTR sp, bool printSymbols)
8888 }
8989 }
9090
91- if (highestScoreSP != sp)
92- cemuLog_log (LogType::Force, fmt::format (" Trace starting at SP {0:08x} r1 = {1:08x}" , highestScoreSP, sp));
93- else
94- cemuLog_log (LogType::Force, fmt::format (" Trace starting at SP/r1 {0:08x}" , highestScoreSP));
91+ cemuLog_log (LogType::Force, fmt::format (" Trace starting at SP {:08x} r1={:08x}" , highestScoreSP, sp));
9592
9693 // print stack trace
9794 uint32 currentStackPtr = highestScoreSP;
@@ -108,9 +105,7 @@ void DebugLogStackTrace(OSThread_t* thread, MPTR sp, bool printSymbols)
108105 uint32 returnAddress = 0 ;
109106 returnAddress = memory_readU32 (nextStackPtr + 4 );
110107
111- RPLStoredSymbol* symbol = nullptr ;
112- if (printSymbols)
113- symbol = rplSymbolStorage_getByClosestAddress (returnAddress);
108+ RPLStoredSymbol* symbol = rplSymbolStorage_getByClosestAddress (returnAddress);
114109
115110 if (symbol)
116111 cemuLog_log (LogType::Force, fmt::format (" SP {:08x} ReturnAddr {:08x} ({}.{}+0x{:x})" , nextStackPtr, returnAddress, (const char *)symbol->libName , (const char *)symbol->symbolName , returnAddress - symbol->address ));
0 commit comments