This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]