mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
Add Python InferiorThread.inferior attribute
So a script can easily get at a thread's inferior and its number. gdb/ChangeLog: 2016-01-13 Pedro Alves <palves@redhat.com> * NEWS: Mention InferiorThread.inferior. * python/py-infthread.c (thpy_get_inferior): New. (thread_object_getset): Register "inferior". gdb/testsuite/ChangeLog: 2016-01-13 Pedro Alves <palves@redhat.com> * gdb.python/py-infthread.exp: Test InferiorThread.inferior. gdb/doc/ChangeLog: 2016-01-13 Pedro Alves <palves@redhat.com> * python.texi (Threads In Python): Document InferiorThread.inferior.
This commit is contained in:
@ -3006,6 +3006,11 @@ Either the LWPID or TID may be 0, which indicates that the operating system
|
||||
does not use that identifier.
|
||||
@end defvar
|
||||
|
||||
@defvar InferiorThread.inferior
|
||||
The inferior this thread belongs to. This attribute is represented as
|
||||
a @code{gdb.Inferior} object. This attribute is not writable.
|
||||
@end defvar
|
||||
|
||||
A @code{gdb.InferiorThread} object has the following methods:
|
||||
|
||||
@defun InferiorThread.is_valid ()
|
||||
|
Reference in New Issue
Block a user