Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How can I delete breakpoint automatically?
@ 2008-01-21  7:28 scl
  2008-01-21  8:18 ` Nick Roberts
  0 siblings, 1 reply; 3+ messages in thread
From: scl @ 2008-01-21  7:28 UTC (permalink / raw)
  To: gdb

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!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How can I delete breakpoint automatically?
  2008-01-21  7:28 How can I delete breakpoint automatically? scl
@ 2008-01-21  8:18 ` Nick Roberts
  2008-01-21  8:38   ` scl
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Roberts @ 2008-01-21  8:18 UTC (permalink / raw)
  To: scl; +Cc: gdb

 > I write one hook command as below, when program stop at some
 > breakpoint, I want to delete the current breakpoint automatically.

Use tbreak?

-- 
Nick                                           http://www.inet.net.nz/~nickrob


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How can I delete breakpoint automatically?
  2008-01-21  8:18 ` Nick Roberts
@ 2008-01-21  8:38   ` scl
  0 siblings, 0 replies; 3+ messages in thread
From: scl @ 2008-01-21  8:38 UTC (permalink / raw)
  To: Nick Roberts; +Cc: gdb

yes, tbreak is ok

thanks


On Jan 21, 2008 4:17 PM, Nick Roberts <nickrob@snap.net.nz> wrote:
>  > I write one hook command as below, when program stop at some
>  > breakpoint, I want to delete the current breakpoint automatically.
>
> Use tbreak?
>
> --
> Nick                                           http://www.inet.net.nz/~nickrob
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-21  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-21  7:28 How can I delete breakpoint automatically? scl
2008-01-21  8:18 ` Nick Roberts
2008-01-21  8:38   ` scl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox