feat(libc): implement std::__throw_bad_weak_ptr #1240
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1240"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by emirplus on 2026-10-07T19:08:03Z.
Resolves NID BnMAMrsfVWo (_ZSt19_Throw_bad_weak_ptrv) by implementing std::bad_weak_ptr.
Changes
core/libs/prx/libc/src/exception/StandardExceptions.cpp: add_ZTISt12bad_weak_ptr,_ZTVSt12bad_weak_ptr, destructors D0/D1/D2, constructors C1/C2,what()and_ZSt19_Throw_bad_weak_ptrv, following the pattern ofbad_function_callandbad_alloc; add St12bad_weak_ptr to PlainWhat so what() returns the readable string.core/libs/prx/libc/src/HeapDiagnostics.cpp: remove the obsolete unknown stub.core/libs/tests/ExceptionRuntime.cpp: add assertion that_ZSt19_Throw_bad_weak_ptrv_nid_postfixthrows catchable asstd::exceptionwith what() returningstd::bad_weak_ptr.docs/dev/TechnicalDebt.md: remove resolved BnMAMrsfVWo entry.Verification
NID confirmed by SHA-1 of
_ZSt19_Throw_bad_weak_ptrvwith project suffix: BnMAMrsfVWo.Windows build (cmake --build --target libc -j 8): no warnings, no errors.
guest_errors test: passed.
exception_runtime_tests (Linux CI) will verify the new assertion.
AI-assisted
AI-assisted: yes
Co-Authored-By: Gemini 3.8 Flash [email protected]
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T02:18:51Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libc/src/exception/StandardExceptions.cppL291Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T02:44:38Z.
Closing: #1143 adds the same
std::bad_weak_ptrexports and was opened first. If something here is missing from it, please comment on #1143 with what it misses.Pull request closed