Use the new kernel module description thing to annotate GPRs in the register viewer

This commit is contained in:
Henrik Rydgård committed 2026-07-28 00:15:41 +02:00
1 parent c0826cbb5d
commit 39c8cbbde1
5 files changed
+59 -20

No files matched your search

+3 -3
View File
@@ -374,9 +374,9 @@ std::string FormatStackTrace(const std::vector<MIPSStackWalk::StackFrame> &frame
std::stringstream str;
for (const auto &frame : frames) {
std::string desc = g_symbolMap->GetDescription(frame.entry);
std::string moduleDesc = KernelModuleAddressDescription(frame.pc);
if (!moduleDesc.empty()) {
str << StringFromFormat("%s [%s] (%08x+%03x, pc: %08x sp: %08x)\n", desc.c_str(), moduleDesc.c_str(), frame.entry, frame.pc - frame.entry, frame.pc, frame.sp);
char moduleDesc[96];
if (DescribeKernelModuleAddress(frame.entry, moduleDesc, sizeof(moduleDesc))) {
str << StringFromFormat("%s [%s] (%08x+%03x, pc: %08x sp: %08x)\n", desc.c_str(), moduleDesc, frame.entry, frame.pc - frame.entry, frame.pc, frame.sp);
} else {
str << StringFromFormat("%s (%08x+%03x, pc: %08x sp: %08x)\n", desc.c_str(), frame.entry, frame.pc - frame.entry, frame.pc, frame.sp);
}