22 lines
552 B
Lua
22 lines
552 B
Lua
local dap = require("dap")
|
|
dap.adapters.gdb = {
|
|
type = "executable",
|
|
command = "/home/m/dev/sw/binutils-gdb/gdb/gdb",
|
|
args = { "-i", "dap", "--data-directory=/home/m/dev/sw/binutils-gdb/gdb/data-directory" }
|
|
}
|
|
|
|
dap.configurations.c = {
|
|
{
|
|
name = "Launch",
|
|
type = "gdb",
|
|
request = "launch",
|
|
program = function()
|
|
local str = vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
|
return str
|
|
end,
|
|
args = {},
|
|
|
|
cwd = "${workspaceFolder}",
|
|
},
|
|
}
|