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-uiout.h | |
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-uiout.h')
-rw-r--r-- | gdb/python/py-uiout.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-uiout.h b/gdb/python/py-uiout.h index d5a50db..9c9617e 100644 --- a/gdb/python/py-uiout.h +++ b/gdb/python/py-uiout.h @@ -46,14 +46,14 @@ public: /* Return the Python object that was created. If a Python error occurred during the processing, set the Python error and return nullptr. */ - PyObject *result () + gdbpy_ref<> result () { if (m_error.has_value ()) { m_error->restore (); return nullptr; } - return current ().obj.release (); + return std::move (current ().obj); } protected: |