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: "kevin.pouget at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 07 Oct 2011 12:14:44 +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
--- Comment #4 from Kevin Pouget <kevin.pouget at gmail dot com> 2011-10-07 12:14:44 UTC ---
is this a good alternative ?
class MyBP(gdb.Breakpoint):
def stop(self):
gdb.post_event(self.delete)
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
--
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.