From e187e7c9696fbf66cf25d5fb8113bc3bc06b9e8b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 3 Nov 2023 13:23:41 -0600 Subject: Emit stop reason details in Python stop events This changes Python stop events to carry a "details" dictionary, that holds any relevant information about the stop. The details are constructed using more or less the same procedure as is done for MI. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=13587 Reviewed-By: Eli Zaretskii --- gdb/python/py-bpevent.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/python/py-bpevent.c') diff --git a/gdb/python/py-bpevent.c b/gdb/python/py-bpevent.c index 00fb625..b640ec9 100644 --- a/gdb/python/py-bpevent.c +++ b/gdb/python/py-bpevent.c @@ -24,10 +24,11 @@ references to BREAKPOINT_LIST and FIRST_BP. */ gdbpy_ref<> -create_breakpoint_event_object (PyObject *breakpoint_list, PyObject *first_bp) +create_breakpoint_event_object (const gdbpy_ref<> &dict, + PyObject *breakpoint_list, PyObject *first_bp) { gdbpy_ref<> breakpoint_event_obj - = create_stop_event_object (&breakpoint_event_object_type); + = create_stop_event_object (&breakpoint_event_object_type, dict); if (breakpoint_event_obj == NULL) return NULL; -- cgit v1.1