skeeto / skeeto/w64devkit

GDB doesn't include 'dap' (debug adapter protocol) interpreter

Open
#197 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
4.8k
Forks
381
PR merge metrics
No merged PRs in 30d

Description

I'm trying to set up a debug adapter in neovim with gdb from w64devkit, and it requires GDB to have the 'dap' interpreter. I searched and it seems that for gdb to support it, it needs to be built with python support:

dap
When GDB has been built with Python support, it also supports the Debugger Adapter Protocol. This protocol can be used by a debugger GUI or an IDE to communicate with GDB. This protocol is documented at https://microsoft.github.io/debug-adapter-protocol/. See Debugger Adapter Protocol, for information about GDB extensions to the protocol.

Having it there allows you to debug code within different editors as a frontend to gdb.

Would you consider building gdb with python support by default to fix this? It would be useful for people wanting to use frontend's for GDB on windows. I understand if you don't want to, though, since mingw is much more focused on C/C++ rather than python, and maybe it bloats the installation?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue identifies GDB's dap interpreter and Python build support as the entry point. Review the w64devkit GDB build configuration and packaging, then verify the resulting Windows GDB exposes dap for the reported Neovim use case. Done means the supported build includes that interpreter, with the behavior verified or the project decision documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.