This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] [python] Implement stop_p for gdb.Breakpoint
Tom Tromey <tromey@redhat.com> writes:
>>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
>
> Phil> I remember a bug about this in 2.5 that did accept const definitions
> Phil> but would later die. (And a patch was checked in. Can't remember by
> Phil> who though). Anyway, Python 2.6 rejects all of the above with:
>
> Thanks, I never remember that. It is ok without that const.
>
> Could you file a bug against Python, like Jan suggested?
>
Sure. And I have committed the code and doc patches per previous
approval. Thanks.
Should I also write something on how Parameters now have callback functions too?
Eli, Here is a NEWS patch.
Cheers,
Phil
--
diff --git a/gdb/NEWS b/gdb/NEWS
index fb36383..826bad3 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -38,6 +38,10 @@
* Python scripting
+ ** Breakpoints can now be sub-classed in Python, and in particular
+ you may implement a 'stop' function that is executed each time
+ the inferior reaches that breakpoint.
+
** New function gdb.lookup_global_symbol looks up a global symbol.
** GDB values in Python are now callable if the value represents a