aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-02-14 17:02:03 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-02-28 17:01:31 +0000
commit659971cb0f8fd749aa951221d99de2868a860d07 (patch)
treea8d9a06e3d9b934d302dd05440c213b9ea35e3c9 /gdb/NEWS
parentea764154c27a11619ba764a4c92f395ba5007234 (diff)
downloadgdb-659971cb0f8fd749aa951221d99de2868a860d07.zip
gdb-659971cb0f8fd749aa951221d99de2868a860d07.tar.gz
gdb-659971cb0f8fd749aa951221d99de2868a860d07.tar.bz2
gdb/python: Add gdb.InferiorThread.details attribute
This adds a new read-only attribute gdb.InferiorThread.details, this attribute contains a string, the results of target_extra_thread_info for the thread, or None, if target_extra_thread_info returns nullptr. As the string returned by target_extra_thread_info is unstructured, this attribute is only really useful for echoing straight through to the user, but, if a user wants to write a command that displays the same, or a similar 'Thread Id' to the one seen in 'info threads', then they need access to this string. Given that the string produced by target_extra_thread_info varies by target, there's only minimal testing of this attribute, I check that the attribute can be accessed, and that the return value is either None, or a string.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index 41ea84e..dc2cac1 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -201,6 +201,11 @@ GNU/Linux/LoongArch loongarch*-*-linux*
set styling'). When false, which is the default if the argument
is not given, then no styling is applied to the returned string.
+ ** New read-only attribute gdb.InferiorThread.details, which is
+ either a string, containing additional, target specific thread
+ state information, or None, if there is no such additional
+ information.
+
* New features in the GDB remote stub, GDBserver
** GDBserver is now supported on OpenRISC GNU/Linux.