This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How can I delete breakpoint automatically?
- From: scl <scl dot sang at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 21 Jan 2008 15:27:44 +0800
- Subject: How can I delete breakpoint automatically?
I write one hook command as below, when program stop at some
breakpoint, I want to delete the current breakpoint automatically.
define hookpost-continue
# check something intersting
delete current breakpoint # because huge calls, I must delete it!
end
Can I do that?
i know continue command will print one line such as
Breakpoint 5, dpb_split_field (fs=0x0) at mbuffer.c:2862
How can I use this information in hookpost-continue?
thanks a lot!