feat(debug): command interface on a FIFO or file #17556
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17556"
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:08:55Z.
What
Adds the command session that runs at a stop:
list,args,add NID,remove NIDandcontinue, read from the file named byANYPS5_DEBUG_CMD. The file is opened at each stop; a regular file is read from its first line at every stop, a FIFO is read as it comes. End of file, or a file that cannot be opened, resumes the stop. An unset variable resumes the stop too.Output of a session goes to stderr with no reply channel, so a client reads the log. There is no
step: each armed hit already stops, socontinueis the only resume.Nothing starts a stop yet (the call path wiring is a follow-up), so the session is not read by a running title.
Stacked on the PR 2 branch (
feat/debug-nid-pause): this branch contains that branch's 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:
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:
stepis not built.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-03T22:35:58Z.
Review: COMMENTED
I compiled and ran the exact breakpoint, stop, and command fixtures on Linux. All passed. One exception path remains:
RunCommandSessioncan throw while building its strings, bypassingfclose, andHitthen exits before releasing the slot it registered. Please scope both resources so a failed session closes the file and releases the registry slot. The existing command tests exercise normal resume and EOF.This head trial-merges cleanly onto
c1601e56d5, but a trial composition with current #17555 conflicts in the stop API and implementation, CMake, and environment docs. Please pin the intended parent before re-running the stack.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.