Add Python InferiorThread.inferior attribute
authorPedro Alves <palves@redhat.com>
Wed, 13 Jan 2016 10:56:06 +0000 (10:56 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 13 Jan 2016 10:58:03 +0000 (10:58 +0000)
commit8465445732dc04c3fb6cf954274e12d06b274f08
treee65ec5f892665f2e5b31daa6a41171ddb82a37b5
parente3940304fe75c91f99e260a89fe8c45ece7e373f
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.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/python.texi
gdb/python/py-infthread.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-infthread.exp
This page took 0.037314 seconds and 4 git commands to generate.