I'm trying to run GDB in a debug build. I'm running rust-gdb -tui ./target/debug/program
then I'm breaking into main with b program::main
(which seems to work as when I run
, the debugger does stop there), but when I try to go into the next line with next
the entire program is run.
(gdb) n
[Inferior 1 (process 10659) exited with code 02]
(gdb)
I do have debug symbols in there (I haven't really changed anything about the debug profile) and can see the contents of the file through gdb.
I've looked online but could not find anything. Appreciated!