I've set a catch point in GDB to catch exceptions with catch throw
. How do I remove it without restarting the GDB session?
Neither delete
nor clear
seem to be helpful here.
You can use catchpoints to cause the debugger to stop for certain kinds of program events, such as C++ exceptions or the loading of a shared library. Use the catch command to set a catchpoint. catch event Stop when event occurs. event can be any of the following: throw. The throwing of a C++ exception.
To stop your program while it is running, type "(ctrl) + c" (hold down the ctrl key and press c). gdb will stop your program at whatever line it has just executed. From here you can examine variables and move through your program. To specify other places where gdb should stop, see the section on breakpoints below.
It turned out I tried to delete it wrongly with delete throw
.
(gdb) info breakpoints
Num Type Disp Enb Address What
2 breakpoint keep y 0x063e3255 exception throw
delete 2
did the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With