diff --git a/Cheat Sheets/Languages/gdb.md b/Cheat Sheets/Languages/gdb.md index b0d7bdf08..5e3c2b6ba 100644 --- a/Cheat Sheets/Languages/gdb.md +++ b/Cheat Sheets/Languages/gdb.md @@ -8,6 +8,14 @@ Loading an existing core file gdb --core= +## Creating core dumps + +Ensure a crashing application creates a core dump + + ulimit -c unlimited + +Now run your application and a `core` file in the current directory should be created. + ## GDB CLI bt # Show call stack