Add `thread_from_thread_handle' method to (Python) gdb.Inferior
authorKevin Buettner <kevinb@redhat.com>
Wed, 4 May 2016 23:23:08 +0000 (16:23 -0700)
committerKevin Buettner <kevinb@redhat.com>
Thu, 21 Sep 2017 18:20:51 +0000 (11:20 -0700)
commitfbbe5337a6d839309c0415765803a19f3e38f6e4
treeab14464ea4db78a911d04011b0ad4936f1f40873
parente04ee09e24563f013c35cdebd7e9de3092b99b83
Add `thread_from_thread_handle' method to (Python) gdb.Inferior

gdb/ChangeLog:
* python/py-inferior.c (gdbpy_thread_from_thread_handle): New
function.
(inferior_object_methods): Add gdbpy_thread_from_thread_handle.
* python/python-internal.h (thread_object_type): Declare.
gdb/ChangeLog
gdb/python/py-inferior.c
gdb/python/python-internal.h