diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2021-05-14 11:56:31 +0200 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2021-05-14 15:33:23 +0200 |
commit | 55789354fcbaf879f3ca8475b647b2747dec486e (patch) | |
tree | c190df296e9397418263e9615401a9b6dde02b2d /gdb/NEWS | |
parent | 2f63ec5ccc5dca36398e570a500ad553729b19a3 (diff) | |
download | gdb-55789354fcbaf879f3ca8475b647b2747dec486e.zip gdb-55789354fcbaf879f3ca8475b647b2747dec486e.tar.gz gdb-55789354fcbaf879f3ca8475b647b2747dec486e.tar.bz2 |
gdb/python: add a 'connection_num' attribute to Inferior objects
Define a 'connection_num' attribute for Inferior objects. The
read-only attribute is the ID of the connection of an inferior, as
printed by "info inferiors". In GDB's internal terminology, that's
the process stratum target of the inferior. If the inferior has no
target connection, the attribute is None.
gdb/ChangeLog:
2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* python/py-inferior.c (infpy_get_connection_num): New function.
(inferior_object_getset): Add a new element for 'connection_num'.
* NEWS: Mention the 'connection_num' attribute of Inferior objects.
gdb/doc/ChangeLog:
2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* python.texi (Inferiors In Python): Mention the 'connection_num'
attribute.
gdb/testsuite/ChangeLog:
2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* gdb.python/py-inferior.exp: Add test cases for 'connection_num'.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -211,6 +211,12 @@ QMemTags value-reference-value, value-rvalue-reference-value and value-const-value. +* Python API + + ** Inferior objects now contain a read-only 'connection_num' attribute that + gives the connection number as seen in 'info connections' and + 'info inferiors'. + *** Changes in GDB 10 * There are new feature names for ARC targets: "org.gnu.gdb.arc.core" |