aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2021-05-05 15:26:28 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-06-25 18:22:07 +0100
commit6b95f5ad9684530960eb828c76755a7b27a44e43 (patch)
tree6773652e729a43cf304ff4354ff18ef6c81088bb /gdb/ChangeLog
parent08080f9744094772e935204a9d59a101da83a801 (diff)
downloadgdb-6b95f5ad9684530960eb828c76755a7b27a44e43.zip
gdb-6b95f5ad9684530960eb828c76755a7b27a44e43.tar.gz
gdb-6b95f5ad9684530960eb828c76755a7b27a44e43.tar.bz2
gdb/python: allow for catchpoint type breakpoints in python
This commit adds initial support for catchpoints to the python breakpoint API. This commit adds a BP_CATCHPOINT constant which corresponds to GDB's internal bp_catchpoint. The new constant is documented in the manual. The user can't create breakpoints with type BP_CATCHPOINT after this commit, but breakpoints that already exist, obtained with the `gdb.breakpoints` function, can now have this type. Additionally, when a stop event is reported for hitting a catchpoint, GDB will now report a BreakpointEvent with the attached breakpoint being of type BP_CATCHPOINT - previously GDB would report a generic StopEvent in this situation. gdb/ChangeLog: * NEWS: Mention Python BP_CATCHPOINT feature. * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support. (bppy_init): Likewise. (gdbpy_breakpoint_created): Likewise. gdb/doc/ChangeLog: * python.texinfo (Breakpoints In Python): Add BP_CATCHPOINT description. gdb/testsuite/ChangeLog: * gdb.python/py-breakpoint.c (do_throw): New function. (main): Call do_throw. * gdb.python/py-breakpoint.exp (test_catchpoints): New proc.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b610f75..5045e71 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
+ * NEWS: Mention Python BP_CATCHPOINT feature.
+ * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
+ (bppy_init): Likewise.
+ (gdbpy_breakpoint_created): Likewise.
+
+2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
+
* guile/scm-breakpoint.c (bpscm_type_to_string): Handle
bp_catchpoint.
(bpscm_want_scm_wrapper_p): Likewise.