gdb

gdb 17.2

GNU Project debugger

<rendered-html><p>GDB, the GNU Project debugger, allows you to see what is going on `inside’ another program while it executes – or what another program was doing at the moment it crashed.</p> </rendered-html>

https://www.gnu.org/software/gdb/
GNU General Public License v3.0 or later
main program: gdbprograms: gcore, gstack, gdbserver, gdb-add-index, gdb
Platforms (30)
i686-linuxriscv32-linuxx86_64-freebsdarc-linuxarmv6l-linuxsh4-linuxpowerpc-linuxpowerpc64-linux
View source on NixOS/nixpkgs →

Install

Copy into your configuration

NixOS (configuration.nix)
environment.systemPackages = with pkgs; [
  gdb
];
Ad-hoc shell
nix-shell -p gdb
Flake (nix run)
nix run nixpkgs#gdb