Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a catchpoint in GDB

Tags:

c++

gcc

gdb

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.

like image 998
UVV Avatar asked Jun 26 '15 09:06

UVV


People also ask

What is Catchpoint gdb?

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.

How do I pause gdb?

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.


1 Answers

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.

like image 140
UVV Avatar answered Oct 06 '22 01:10

UVV