From 796d4550f13c9911c6e63d7dcd7d83b7a6437b3a Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Mon, 5 Feb 2024 13:20:53 +0100 Subject: [PATCH] add gdb as adapter --- lua/custom/plugins.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index c4b99b1..794dd2c 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -734,6 +734,12 @@ local plugins = { end, config = function() local dap = require "dap" + dap.adapters.gdb = { + type = "executable", + command = "gdb", + args = { "-i", "dap" }, + } + dap.configurations.c = { { name = "Launch", @@ -745,6 +751,8 @@ local plugins = { cwd = "${workspaceFolder}", }, } + dap.configurations.rust = dap.configurations.c + dap.configurations.cpp = dap.configurations.c end, }, }