This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/12802] Delete breakpoint from Breakpoint.stop
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 10 Oct 2011 19:06:23 +0000
- Subject: [Bug python/12802] Delete breakpoint from Breakpoint.stop
- Auto-submitted: auto-generated
- References: <bug-12802-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12802
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
--- Comment #7 from Tom Tromey <tromey at redhat dot com> 2011-10-10 19:06:23 UTC ---
(In reply to comment #4)
> is this a good alternative ?
>
> class MyBP(gdb.Breakpoint):
> def stop(self):
> gdb.post_event(self.delete)
I think so.
> the documentation of gdb.post_event seems not very clear if you don't look at
> what is done internally -- I didn't -- but I think it should be safe to do it
> this way
Can you suggest how to fix the docs?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.