You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A couple of examples for native gdb adapter wiki that might be generally useful for those who want to start using it:
dap.configurations.c= {
...
{ -- needs privileges to be able to attach, see for example https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.htmlname="Select and attach to process",
type="gdb",
request="attach",
program=function()
returnvim.fn.input('Path to executable: ', vim.fn.getcwd() ..'/', 'file')
end,
pid=function()
localname=vim.fn.input('Executable name (filter): ')
returnrequire("dap.utils").pick_process({ filter=name })
end,
cwd='${workspaceFolder}'
},
{
name='Attach to gdbserver :1234',
type='gdb',
request='attach',
target='localhost:1234',
program=function()
returnvim.fn.input('Path to executable: ', vim.fn.getcwd() ..'/', 'file')
end,
cwd='${workspaceFolder}'
},
...
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A couple of examples for native gdb adapter wiki that might be generally useful for those who want to start using it:
Beta Was this translation helpful? Give feedback.
All reactions