From patchwork Sun Apr 9 06:07:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Buettner X-Patchwork-Id: 19922 Received: (qmail 89535 invoked by alias); 9 Apr 2017 06:07:14 -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 89422 invoked by uid 89); 9 Apr 2017 06:07:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= 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, 09 Apr 2017 06:07:10 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5CC5F7F359 for ; Sun, 9 Apr 2017 06:07:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5CC5F7F359 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@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 5CC5F7F359 Received: from pinnacle.lan (ovpn-116-88.phx2.redhat.com [10.3.116.88]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3424A18983 for ; Sun, 9 Apr 2017 06:07:10 +0000 (UTC) Date: Sat, 8 Apr 2017 23:07:07 -0700 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: [PATCH v2 3/7] Documentation for gdb.thread_from_thread_handle Message-ID: <20170408230700.3754771e@pinnacle.lan> In-Reply-To: <20170408224959.67164a27@pinnacle.lan> References: <20170408224959.67164a27@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 | 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