From patchwork Tue Oct 22 23:19:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Terekhov, Mikhail via Gdb-patches" X-Patchwork-Id: 35240 Received: (qmail 33344 invoked by alias); 22 Oct 2019 23:19:08 -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 33336 invoked by uid 89); 22 Oct 2019 23:19:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-qt1-f202.google.com Received: from mail-qt1-f202.google.com (HELO mail-qt1-f202.google.com) (209.85.160.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Oct 2019 23:19:07 +0000 Received: by mail-qt1-f202.google.com with SMTP id n34so6457581qta.12 for ; Tue, 22 Oct 2019 16:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=Hdz+p75xpaJNBWYs2Xgi+LU/HrDyO7bpLNXF0PML6zI=; b=HAaZptGrPcTN2zoVtNFguGVWUjB/bslDmrweCmS80MzuNctsUgXzPvc4Cj/SoPf+7u uVsrcXIOzzvYR5o/+We9OBGRuPpD4Hk28vW25sHpMZ10PPe/jlZ4EZZHwGITsBeFDkf0 7X+S5poe1Y6/rwsFI3FvgRhbiFwITjX1xG3InA+8hmWo2VncY4GgutrPYOlUcOG1yNMm KcpKPnEr/90XgaoEFwXbXjGoj9OYSVJGSicNatHtS6RSkmMSnRIfiijLQmyf7w6bmIiA xCUfjwBW0dIwxWNzAUO9SipTh/vVbEj4SLDqB8dQlsSW6h4Zu1FtQ6p21owaw+HHUEk7 ykTA== Date: Tue, 22 Oct 2019 18:19:00 -0500 Message-Id: <20191022231900.215822-1-cbiesinger@google.com> Mime-Version: 1.0 Subject: [PATCH] Add a note for how to get the list of threads X-Patchwork-Original-From: "Christian Biesinger via gdb-patches" From: "Terekhov, Mikhail via Gdb-patches" Reply-To: Christian Biesinger To: gdb-patches@sourceware.org Cc: Christian Biesinger X-IsSubscribed: yes It's not immediately obvious how to get the list of threads, so add a note about that in the "Threads in Python" section. gdb/doc/ChangeLog: 2019-10-22 Christian Biesinger * python.texi (Threads In Python): Add a note for how to get the list of threads. Change-Id: I0fef8a7aff161fc347c09052319048c907a6e8c3 --- gdb/doc/python.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 48adad4e97..a5bc162139 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -3293,6 +3293,9 @@ This function returns the thread object for the selected thread. If there is no selected thread, this will return @code{None}. @end defun +To get the list of threads for an inferior, use the @code{Inferior.threads()} +method. @xref{Inferiors In Python} + A @code{gdb.InferiorThread} object has the following attributes: @defvar InferiorThread.name