diff options
author | Tom Tromey <tromey@adacore.com> | 2023-11-03 13:23:41 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-12-11 10:51:32 -0700 |
commit | e187e7c9696fbf66cf25d5fb8113bc3bc06b9e8b (patch) | |
tree | db8bf8c6a14650905a6831cb35de0fea3e504510 /gdb/python/py-bpevent.c | |
parent | f2e2493b1f892bd377b772307c5ad37bdcda4e12 (diff) | |
download | binutils-e187e7c9696fbf66cf25d5fb8113bc3bc06b9e8b.zip binutils-e187e7c9696fbf66cf25d5fb8113bc3bc06b9e8b.tar.gz binutils-e187e7c9696fbf66cf25d5fb8113bc3bc06b9e8b.tar.bz2 |
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 <eliz@gnu.org>
Diffstat (limited to 'gdb/python/py-bpevent.c')
-rw-r--r-- | gdb/python/py-bpevent.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |