Skip to content

More misc debugging stuff, more sceReg functions, etc - #21995

Merged
hrydgard merged 8 commits into
masterfrom
more-misc-stuff
Jul 28, 2026
Merged

More misc debugging stuff, more sceReg functions, etc#21995
hrydgard merged 8 commits into
masterfrom
more-misc-stuff

Conversation

@hrydgard

Copy link
Copy Markdown
Owner

These are random features and stuff that came out of Claude's latest investigation. Some of these are Claudes, some by me.

For example, better stack traces (now with module information) and logs, some crashfixes, a couple of new sceReg functions etc.

hrydgard and others added 6 commits July 27, 2026 23:41
…RAM in kernel space is valid (but nothing is mapped there, unless you use masked memory)
… logs

Added KernelModuleAddressDescription() (Core/HLE/sceKernelModule.cpp),
which looks up which currently loaded module (and text/data/bss/segment
section within it) an address falls in, e.g. "EBOOT.BIN.text+1234".
Wired it into:

- Core_MemoryException/Core_ExecException/Core_BreakException
  (Core/Core.cpp), appended next to every address/pc/ra shown in their
  log lines.
- FormatStackTrace (Core/MemFault.cpp), appended per-frame next to the
  existing symbol description.

This makes crash/exception logs actionable even when there's no symbol
at the faulting address - you at least get which module and section
it's in, useful for reverse engineering unfamiliar code.

Verified live via headless: injected a MIPS break instruction at the
current PC (through Tools/wsdbg) and confirmed the log line changed from
"break instruction hit at 088040ac" to "break instruction hit at 088040ac
[sceDisplayWaitVblank Test.text+ac]".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XDNwPPuidmNxQGRJxBuRL6
@hrydgard hrydgard added this to the v1.21 milestone Jul 27, 2026
@hrydgard
hrydgard merged commit 7b38041 into master Jul 28, 2026
23 checks passed
@hrydgard
hrydgard deleted the more-misc-stuff branch July 28, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant