Open matu3ba opened 10 months ago
For example this script https://github.com/mfussenegger/nvim-dap/wiki/Cookbook#run-the-current-buffer-script-with-cli-arguments-and-enter-into-debug-mode only handles additional cli input, but not modifying the gdb invocation itself.
Problem Statement
Error on attach: Operation not permitted
is given on attaching. My usual workflow is to use least capability debugger approach viaPossible Solutions
Considered Alternatives
Ideally, one could have multiple input and output channels to a gdb instances since ptrace only allows 1 debugger. However, afaiu, multi clients in gdbserver do not work and other debuggers dont even provide such infrastructure, see https://sourceware.org/gdb/wiki/MultiClient. That way one would only need to attach to such a session, ie via same pid/port.