add gdb as adapter

This commit is contained in:
Christoph J. Scherr 2024-02-05 13:20:53 +01:00
parent 9f17fe4ffe
commit 796d4550f1
1 changed files with 8 additions and 0 deletions

View File

@ -734,6 +734,12 @@ local plugins = {
end, end,
config = function() config = function()
local dap = require "dap" local dap = require "dap"
dap.adapters.gdb = {
type = "executable",
command = "gdb",
args = { "-i", "dap" },
}
dap.configurations.c = { dap.configurations.c = {
{ {
name = "Launch", name = "Launch",
@ -745,6 +751,8 @@ local plugins = {
cwd = "${workspaceFolder}", cwd = "${workspaceFolder}",
}, },
} }
dap.configurations.rust = dap.configurations.c
dap.configurations.cpp = dap.configurations.c
end, end,
}, },
} }