Skip to content

Develop - #5

Merged
StarLorder123 merged 3 commits into
mainfrom
develop
Jul 20, 2026
Merged

StarLorder123 merged 3 commits into
mainfrom
develop

Conversation

@StarLorder123

Copy link
Copy Markdown
Owner

No description provided.

Replace hard-coded codelldb assumptions throughout the stack with
adapter-agnostic abstractions (AdapterKind/AdapterConfig), enabling
GDB DAP mode as the first new debug adapter.

- dap-client: introduce AdapterKind (Codelldb/Gdb) and AdapterConfig;
  change start(path) to start(&config); add background stderr drain
  to prevent pipe-buffer deadlock with verbose adapters
- debug-session: track adapter_kind for behavioral branching;
  launch/configuration_done use fire-and-forget for codelldb vs
  blocking for GDB; derive default adapterId from adapter kind
- debug-bridge: StartParams accept adapterPath/adapterKind/adapterArgs
  with backward-compatible codelldbPath alias; launch handler uses
  GDB 'target' vs codelldb 'processCreateCommands' for remote debug
- CLI: --adapter-path/--adapter-kind/--adapter-args flags with
  deprecated --codelldb-path fallback; adapter-specific remote launch
- All integration/E2E tests updated to AdapterConfig pattern
- Remove docs/fangan.md (obsolete Chinese design document)
- Rewrite all user-facing messages, docs, and comments to be
  adapter-agnostic (s/codelldb/debug adapter/)
MCP clients can now pass an optional liblldbPath in the initialize
handshake to tell teleDAP where liblldb.dll lives. The parent
directory is prepended to PATH when spawning codelldb, so the
adapter can find the shared library without system-wide config.

- InitializeParams: optional liblldbPath field (backward-compatible)
- DapClient: stores path + prepends parent dir to PATH on spawn
- DebugSession: set_lib_lldb_path() delegation method
- server.rs: handle_initialize parses params, stores on session
- cli.rs: --liblldb-path optional argument
The get_threads tool was previously gated to Halted state only,
preventing AI agents from discovering thread IDs while the
debuggee is running. Since codelldb/LLDB maintains a thread
list regardless of execution state, the DAP threads request
can be answered even during Running.

- gating.rs: add Running to get_threads allowed states
- tools.rs: update description to reflect dual-state availability
- registry.rs test: verify get_threads appears in Running tools
@StarLorder123
StarLorder123 merged commit 0f9ba83 into main Jul 20, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant