Files
AnyPS5/core/libs/tests/WindowsBacktraceReport.cpp
T
Achraf ReyaniandClaude Opus 5.5 cf2ca2b103 fix(libc): list stack return address candidates in Windows backtrace reports
The abort() and UCRT invalid-parameter reports capture the stack with
RtlCaptureStackBackTrace, which stops at the first frame without unwind
data (guest code, or our libraries built without asynchronous unwind
tables), so they often end two or three frames in, before any caller.
The fault report already scans the stack for code addresses; that scan
is now a helper the backtrace reports use as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 03:41:02 +09:00

13 lines
331 B
C++

#include <cstdio>
#include <cstdlib>
#include "../prx/libc/include/general/VabiMacros.hpp"
extern "C" int* APS5_VABI __error_nid_postfix();
int main() {
if (__error_nid_postfix() == nullptr) return 1;
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
std::fputs("aborting\n", stderr);
std::abort();
}