From patchwork Sun Sep 16 05:18:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Buettner X-Patchwork-Id: 29405 Received: (qmail 100111 invoked by alias); 16 Sep 2018 05:19:03 -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 99991 invoked by uid 89); 16 Sep 2018 05:18:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=cindex, @cindex 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 ESMTP; Sun, 16 Sep 2018 05:18:49 +0000 Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7A10D88E4A for ; Sun, 16 Sep 2018 05:18:48 +0000 (UTC) Received: from pinnacle.lan (ovpn-117-176.phx2.redhat.com [10.3.117.176]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B1E530912F4 for ; Sun, 16 Sep 2018 05:18:48 +0000 (UTC) Date: Sat, 15 Sep 2018 22:18:47 -0700 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: [PATCH 4/4] Documentation for python method InferiorThread.thread_handle Message-ID: <20180915221847.27a1d50b@pinnacle.lan> In-Reply-To: <20180915220836.7dda4a63@pinnacle.lan> References: <20180915220836.7dda4a63@pinnacle.lan> MIME-Version: 1.0 X-IsSubscribed: yes gdb/doc/ChangeLog: * python.texi (Threads In Python): Add description for method InferiorThread.thread_handle. --- gdb/doc/python.texi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index aca6ec8..87e1762 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -3220,6 +3220,14 @@ Return a Boolean indicating whether the thread is running. Return a Boolean indicating whether the thread is exited. @end defun +@defun InferiorThread.thread_handle (type) +Return the thread object's handle. Since handles are generally opaque +objects, the type @var{type} is used to ensure that the correct amount +of space is allocated for the returned handle value. When using handles +associated with the pthreads library, the value passed for @var{type} +should be the result of invoking @code{gdb.lookup_type('pthread_t')}. +@end defun + @node Recordings In Python @subsubsection Recordings In Python @cindex recordings in python