cd /your-folder && chmod a+x ./your-binarygdb --args ./your-binary [args...]. Orgdb -tui --args ./your-binary [args...]for terminal UI.gdb -ex r --args ./your-binary [args...]to run it automatically.b functionorb file:lineorb class:functionto set breakpointsrto run or restart executionsto step in executionnto step out executioncto continue executionbtto display backtrace (callstack)f numberto switch backtrace frame. Alsoupanddownto navigate.p symbolto print values.info localsto see a list.t numberto switch thread.info threadsto see a list.qto quit debugger
See also GDB tutorials
cd /your-folder && gdb your-binary your-coredump.filebt