From patchwork Thu May 5 21:16:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Buettner X-Patchwork-Id: 12030 Received: (qmail 12638 invoked by alias); 5 May 2016 21:17:01 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 12622 invoked by uid 89); 5 May 2016 21:17:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Threads X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 05 May 2016 21:16:50 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C101564D23 for ; Thu, 5 May 2016 21:16:49 +0000 (UTC) Received: from pinnacle.lan (ovpn-113-39.phx2.redhat.com [10.3.113.39]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u45LGnlu027490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA256 bits=256 verify=NO) for ; Thu, 5 May 2016 17:16:49 -0400 Date: Thu, 5 May 2016 14:16:47 -0700 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: [PATCH 3/4] Documentation for gdb.thread_from_thread_handle Message-ID: <20160505141647.65c13e73@pinnacle.lan> In-Reply-To: <20160505140938.26a084ed@pinnacle.lan> References: <20160505140938.26a084ed@pinnacle.lan> MIME-Version: 1.0 X-IsSubscribed: yes gdb/doc/ChangeLog: * python.texi (Threads In Python): Add description for function gdb.thread_from_thread_handle. --- gdb/doc/python.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index ffbf89a..c519d1c 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2981,6 +2981,13 @@ This function returns the thread object for the selected thread. If there is no selected thread, this will return @code{None}. @end defun +@findex gdb.thread_from_thread_handle +@defun gdb.thread_from_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