From patchwork Thu Feb 28 02:35:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Buettner X-Patchwork-Id: 31683 Received: (qmail 24500 invoked by alias); 28 Feb 2019 02:35: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 24250 invoked by uid 89); 28 Feb 2019 02:35:02 -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=bufobj 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; Thu, 28 Feb 2019 02:35:01 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B26DE7C0A2 for ; Thu, 28 Feb 2019 02:35:00 +0000 (UTC) Received: from f29-4.lan (ovpn-117-11.phx2.redhat.com [10.3.117.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8CD1B16E33 for ; Thu, 28 Feb 2019 02:35:00 +0000 (UTC) Date: Wed, 27 Feb 2019 19:35:00 -0700 From: Kevin Buettner To: gdb-patches@sourceware.org Subject: [PATCH v2 5/5] Documentation for python method InferiorThread.thread_handle Message-ID: <20190227193500.3d419ead@f29-4.lan> In-Reply-To: <20190227192416.613752c8@f29-4.lan> References: <20190227192416.613752c8@f29-4.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 7f6f52c4df..cc663486a2 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -3240,6 +3240,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 () +Return the thread object's handle, represented as a Python @code{bytes} +object. A @code{gdb.Value} representation of the handle may be +constructed via @code{gdb.Value(bufobj, type)} where @var{bufobj} is +the Python @code{bytes} representation of the handle and @var{type} is +a @code{gdb.Type} for the handle type. +@end defun + @node Recordings In Python @subsubsection Recordings In Python @cindex recordings in python