add gdb as adapter
This commit is contained in:
parent
9f17fe4ffe
commit
796d4550f1
|
@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue