gdb and gdbserver as static binaries
gdb & gdbserver, the go-to debugging tools for GNU/Linux and *BSD systems.
This provides a minimalized and static build for all supported systems.
Note: To use this debugger, please start it outside of confinement, ie execute it directly:
/snap/gdb-static/current/usr/bin/gdb
Or:
/snap/gdb-static/current/usr/bin/gdbserver
Or add them to your PATH for easy access:
export PATH="/snap/gdb-static/current/usr/bin:$PATH"