This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 3/7] Documentation for gdb.thread_from_thread_handle
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 8 Apr 2017 23:07:07 -0700
- Subject: [PATCH v2 3/7] Documentation for gdb.thread_from_thread_handle
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=kevinb at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 5CC5F7F359
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5CC5F7F359
- References: <20170408224959.67164a27@pinnacle.lan>
gdb/doc/ChangeLog:
* python.texi (Threads In Python): Add description for function
gdb.thread_from_thread_handle.
---
gdb/doc/python.texi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index ce5810e..81543d3 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3008,6 +3008,12 @@ This function returns the thread object for the selected thread. If there
is no selected thread, this will return @code{None}.
@end defun
+@defun gdb.thread_from_thread_handle (thread_handle)
+Return the thread object corresponding to the thread handle,
+@var{thread_handle}, a thread library specific data structure such as
+@code{pthread_t} for pthreads library implementations.
+@end defun
+
A @code{gdb.InferiorThread} object has the following attributes:
@defvar InferiorThread.name