When you want to quit the gdb, a confirmation prompt will appear:
“A debugging session is active.
Inferior 1 [process 19114 ] will be killed.
Quit anyway? (y or n)“
It may be annoying sometimes. If you don't want to see it, you could input "set confirm off" in gdb. You can also write this command in .gdbinit.
“A debugging session is active.
Inferior 1 [process 19114 ] will be killed.
Quit anyway? (y or n)“
It may be annoying sometimes. If you don't want to see it, you could input "set confirm off" in gdb. You can also write this command in .gdbinit.