feat(libc): add a breakpoint table for guest NIDs, off by default #17261
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17261"
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 MarcZX10 on 2026-11-08T16:31:06Z.
What
Adds a breakpoint table for guest NIDs in the libc debug support, off by default:
ANYPS5_DEBUG_NIDS, read once on first use. Malformed entries are reported by their text, and the armed NIDs can be listed.ANYPS5_DEBUG_NIDSunset the table stays empty (tested).ANYPS5_DEBUG_NIDSis documented indocs/dev/ENVIRONMENT.md; the parts not built yet are recorded indocs/dev/debt/libc.md.No pausing yet: arming a NID does not stop the guest. No call path consults the table yet, and the startup call that reads the variable is not wired yet.
Tested
Linux, host archive build (cmake configure OK), focused tests only, on the head
7857fdaf1a, which is this branch with currentmainmerged in (no rebase). Command:BUILD-EXIT 01/1 Test #812: guest_debug_nid_breakpoints ... Passed 0.02 sec100% tests passed, 0 tests failed out of 1The earlier head (
fe365ab100) also passedguest_radix64; that run is not repeated on the merged head. The per-file SYNTAX stage reports a missing generated header (RelinkerRevision.hpp) for one file; BUILD-EXIT is 0.Also
python3 tools/check_conventions.pypasses andgit diff --checkis clean against the base.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-12T06:08:58Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
f27b676d05:tools/check_conventions.pypassed;git diff --checkclean.guest_debug_nid_breakpoints_testsbuilt cleanly.guest_debug_nid_breakpoints):Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:36:02Z.
Review: COMMENTED
I compiled and ran the exact breakpoint-table fixture on Linux, and the trial merge onto
c1601e56d5was clean. Please define whetherIsArmedis allowed to miss an always-armed NID during concurrent table edits. A reader can scan the old contents of an earlier slot, miss the last NID moving into that slot on removal, and read a newly added NID at its old tail slot. The last NID stayed armed across both edits. A stable view or a documented best-effort lookup would make the intended semantics clear before guest stops use this path.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.