This is the mail archive of the gdb-prs@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]

[Bug python/12802] Delete breakpoint from Breakpoint.stop


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.


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