feat: mature lldb agent harness#245
Draft
AiMiDi wants to merge 5 commits intoHKUDS:mainfrom
Draft
Conversation
Collaborator
|
Thanks for the Apr 27/28 updates. The DAP responsiveness and stop-rule additions are useful. I checked the current head ( Since the PR is still draft, I would also keep the real-client smoke checklist before marking ready: initialize, attach/launch, breakpoints, configurationDone, threads, stackTrace, variables, continue, and disconnect. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Matures the existing LLDB harness into the v1.0 AI debugging adapter layer.
This PR adds a formal stdio Debug Adapter Protocol entry point (
cli-anything-lldb-dap) while keeping the existing JSON CLI and REPL workflows intact. It hardens the persistent CLI session daemon, makes unresolved breakpoints honest by default, expands stop/process/source/disassembly metadata, and updates the agent-facing docs for DAP and persistent-session workflows.Follow-up GUI/debugger responsiveness improvements are included: DAP
continuenow returns before blocking LLDB continue completes,pauseuses async interrupt, and breakpoint mutation during active continue first interrupts and waits for a stopped state.launch/attachsupport the compatibilityautoContinueInternalBreakpointsflag for known debugger-internal JIT/startup stops.Latest iteration adds structured DAP stop rules and external profile files. Targets such as C4D can inject rules matching
reason,module,function, and/orregex; rules can either classify a stop or auto-continue it. DAP stopped events now exposebody.cliAnythingStop.origin(manualPause,internalTrap, ordebuggee) with matched-rule and frame/module/function metadata, so AI clients can distinguish a requested pause from NVIDIA/C4D/internal traps. Existing runningcli-anything-lldb-dapprocesses do not hot-load profile/code changes; clients must restart the adapter and re-attach/re-launch.Skip/testing note: the current local Windows run has 0 skipped tests. Earlier local runs could skip the optional core-load negative-path scenario when
LLDB_TEST_COREwas unset; after rebasing onto currentmain, that test now uses a placeholder fixture, so no skip waiver is needed in this PR.Type of Change
Checklist
feat:,fix:,docs:,test:)Test Results