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
It would be nice to have this scriptable in some form instead of relying on the primitive attach functionality leading to potential exploits via ptrace.
Likewise, it would be much nicer to have something akind to the cli for configuration and/or a selection of multiple configurations.
Possible Solutions
make start commands dynamic and let the user handle it, provide logic+logs for recently used debug commands
explain how it is too clunky due to DAP + shell shortcomings too implement
explain roughly how to make this work in a task runner like overseer.nvim
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.
The text was updated successfully, but these errors were encountered:
matu3ba
changed the title
Enable capabillity handling via sudo prompt and dynamic startup configuration
Enable capabillity handling for attaching to process via sudo prompt and dynamic startup configuration
Sep 8, 2023
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.
The text was updated successfully, but these errors were encountered: