feat(tools): nid_names client for the debugger #17558
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17558"
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-08T22:09:29Z.
What
Adds
tools/debug_nids.py, a client that writes breakpoint commands into the file named byANYPS5_DEBUG_CMD(or--cmd).addandremovetake NIDs or symbol names; names are hashed the same way the tables are, and anything else is refused.list,argsandcontinueare written as they are. The file is overwritten on each call, because a stop reads its first line.Documented in
docs/dev/REVERSE_ENGINEERING.md. Unit tests use the sinh vector from the NID name database tests.Stacked on the PR 4 branch (
feat/relinker-nid-hook-table); this branch contains its commits.Tested
Linux, Debian kernel 6.1.0-54-amd64, Intel Xeon E5-1620 v2. Host archive build, focused tests only, no game and no PS5 hardware.
Command:
Output:
The client's tests also run on their own with
python3 -m unittest tools/tests/test_debug_nids.py: 7 tests, all pass.Overlap: pr_overlap fails closed on shared files (libc build list, the libc debt file, the environment reference). Across the 109 open PRs it flags for this series, none adds a line using the debugger or hook-table identifiers (DebugNid, NidStop, NidBreakpoint, ANYPS5_DEBUG, command parsing, WriteHookTable, hooks.json, debug_nids, breakpoint). No open PR implements the same functions.
Not verified:
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 ligmaSec on 2026-12-03T11:21:20Z.
Review: COMMENTED
Ran the submitted debugger NID client suite on Linux. All eight cases passed, including ordered command output, replacement of an existing output file, canonical NID checks, and print mode.
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.