mirror of
https://github.com/morluto/rea.git
synced 2026-12-01 11:01:11 +00:00
* fix(debuggers)!: report the inferior disposition that debugger cleanup established The shared owned-debugger stop returned `stopped` or `already_exited` without saying what happened to the inferior, so close_gdb_session re-derived a local target_state (reporting a verified -target-detach as "unknown") and close_rizin_debug_session always returned the literal "unknown". The stop result now carries one InferiorDisposition (none_observed, detached, exited, or unknown with the provider's reason), mapped once from the recorded detach outcome. `stopped_inferior_unknown` is folded into it. Providers report a verified state through `verifiedInferior` (replacing `inferiorStateUnknown`), and a detach whose identified inferior then ended reports `inferior-ended` instead of `no-inferior`. GDB tracks its verified inferior state as a union instead of a boolean, so the detach that close performed is still reported after the debugger stops. Both close tools return `target_state` from the stop result. Refs #15324 BREAKING CHANGE: close_gdb_session and close_rizin_debug_session output `target_state` is now one of none_observed, detached, exited or unknown. close_gdb_session previously returned only none_observed or unknown; close_rizin_debug_session always returned unknown. Clients that validate output against the previous schemas must accept the new values; `unknown` keeps its meaning (the debugger was terminated without a verified detach, so the inferior may still be running). * test(debuggers): type the lifecycle close fake with the full inferior disposition * test(debuggers): commit close schema summaries and prove what a failed close keeps Commits the advertised schema summaries for close_gdb_session and close_rizin_debug_session. The GDB manager test now asserts the close itself stopped the owned process, and the external-mutation lifecycle test asserts a command refused behind a failed close is that retained cleanup blocker and never reaches the debugger.