public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Add a note for how to get the list of threads
@ 2019-10-23 16:28 Christian Biesinger
0 siblings, 0 replies; only message in thread
From: Christian Biesinger @ 2019-10-23 16:28 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=14796d2978765ab0e160ada298adb9ffc224fd75
commit 14796d2978765ab0e160ada298adb9ffc224fd75
Author: Christian Biesinger <cbiesinger@google.com>
Date: Tue Oct 22 18:17:24 2019 -0500
Add a note for how to get the list of threads
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
Diff:
---
gdb/doc/ChangeLog | 5 +++++
gdb/doc/python.texi | 3 +++
2 files changed, 8 insertions(+)
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 26f858f..b81c2cc 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -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.
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index 48adad4..13191fc 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-23 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23 16:28 [binutils-gdb] Add a note for how to get the list of threads Christian Biesinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).