Add a note for how to get the list of threads
authorChristian Biesinger <cbiesinger@google.com>
Tue, 22 Oct 2019 23:17:24 +0000 (18:17 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Wed, 23 Oct 2019 16:27:28 +0000 (11:27 -0500)
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-23  Christian Biesinger  <cbiesinger@google.com>

* python.texi (Threads In Python): Add a note for how to get the
list of threads.

Change-Id: I0fef8a7aff161fc347c09052319048c907a6e8c3

gdb/doc/ChangeLog
gdb/doc/python.texi

index 26f858f9c83fdc1eb76970148322d937c62fe587..b81c2cca0d185e7197c177f39cfb849cdda6d6b4 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-23  Christian Biesinger  <cbiesinger@google.com>
+
+       * python.texi (Threads In Python): Add a note for how to get the
+       list of threads.
+
 2019-10-07  Tom de Vries  <tdevries@suse.de>
 
        * gdb.texinfo: Fix typo.
index 48adad4e97b2e844c30f5ebd638af1203836b3b5..13191fc9ae8ef0378b7d302037f4cd25ee5ce464 100644 (file)
@@ -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
This page took 0.031362 seconds and 4 git commands to generate.