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.
Asked
Active
Viewed 3,384 times
6
-
Do you pass a certain point in the code when you want to insert the breakpoint? It is possible to create a breakpoint that just insert another. – daramarak Nov 15 '13 at 09:20
-
I did not get your reply . – Avinash Kumar Nov 15 '13 at 09:23
-
Instead of actually stopping the execution of the program it is possible to activate or set breakpoints at certain points in your code. Either via breakpoints or watchpoints. – daramarak Nov 15 '13 at 09:25
-
how when gdb is running your code (without stopping the execution ) ? – Avinash Kumar Nov 15 '13 at 09:45
-
I suggest you read the Stopping and Continuing part of the gdb manual I reference in my answer below. – daramarak Nov 15 '13 at 10:02