6

I want to add some breakpoints while gdb is executing . How to suspend running gdb and insert breakpoint and continue from there . I tried ctrl+z , it kills the gdb process.

Avinash Kumar
  • 739
  • 2
  • 10
  • 25

1 Answers1

9

Ctrl-c breaks the execution of your program within gdb, and allows you to insert any breakpoints you like. Stopping is very well explained in the manual. I would suggest you read it, it gives you an huge advantage when debugging.

daramarak
  • 6,115
  • 1
  • 31
  • 50