Linux /proc and Process Debugging/Open latest core in gdb

Load the newest core dump for a PID into gdb.

Section: Debuggers and Core Dumps

Open latest core in gdb

bash
bash
coredumpctl gdb 1234
Explanation

Load the newest core dump for a PID into gdb.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Debuggers and Core Dumps
Attach gdb to PID
Attach a debugger to a running process.
OpenIn sheetbashsame section
Batch backtrace with gdb
Collect all-thread backtraces from a live process.
OpenIn sheetbashsame section
List captured core dumps
List core dumps managed by systemd-coredump.
OpenIn sheetbashsame section
Enable core dumps in shell
Allow the shell to generate core dumps.
OpenIn sheetbashsame section
Read process command line
Print the null-separated command line from /proc.
Trace a command with strace
Trace syscalls made by a new command.