diff options
Diffstat (limited to 'gdb/python/lib')
-rw-r--r-- | gdb/python/lib/gdb/__init__.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/python/lib/gdb/__init__.py b/gdb/python/lib/gdb/__init__.py index d748b3a..f2f38b3 100644 --- a/gdb/python/lib/gdb/__init__.py +++ b/gdb/python/lib/gdb/__init__.py @@ -90,27 +90,33 @@ def _execute_unwinders(pending_frame): Arguments: pending_frame: gdb.PendingFrame instance. + Returns: - gdb.UnwindInfo instance or None. + Tuple with: + + [0] gdb.UnwindInfo instance + [1] Name of unwinder that claimed the frame (type `str`) + + or None, if no unwinder has claimed the frame. """ for objfile in objfiles(): for unwinder in objfile.frame_unwinders: if unwinder.enabled: unwind_info = unwinder(pending_frame) if unwind_info is not None: - return unwind_info + return (unwind_info, unwinder.name) for unwinder in current_progspace().frame_unwinders: if unwinder.enabled: unwind_info = unwinder(pending_frame) if unwind_info is not None: - return unwind_info + return (unwind_info, unwinder.name) for unwinder in frame_unwinders: if unwinder.enabled: unwind_info = unwinder(pending_frame) if unwind_info is not None: - return unwind_info + return (unwind_info, unwinder.name) return None |