Files
psxrecomp/runtime
Matthew Stanley b3cc33a678 crash_trace: record dispatch_depth (runaway-recursion fingerprint)
The crash report named the recursing PCs (dirty_block tail) but not the depth,
so "this is a stack overflow from unbounded native recursion" had to be inferred
by hand. Serialize g_psx_dispatch_depth (generated/SCPH1001_dispatch.c, a global,
read-only here) into the report header: a huge value at crash time is the direct
fingerprint of runaway recursion overflowing the host C stack (0xC00000FD), since
the host stack mirrors the guest call graph. Pairs with the dirty_block tail
(which names the recursing function) for a self-evident report.

No generated code modified; this is pure serialization of an existing global.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 11:30:31 -07:00
..