diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-01-09 17:29:24 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-01-12 09:22:25 +0000 |
commit | 76118e1675f5eaf3fc44524ec435981705572629 (patch) | |
tree | 4f4351eece10850ac947757b538a795a72e43491 /gdb/NEWS | |
parent | 322ffd247e4e95a0d5a1b11ad1ef91f3378e6174 (diff) | |
download | gdb-76118e1675f5eaf3fc44524ec435981705572629.zip gdb-76118e1675f5eaf3fc44524ec435981705572629.tar.gz gdb-76118e1675f5eaf3fc44524ec435981705572629.tar.bz2 |
gdb/python: New InferiorThread.ptid_string attribute
This commit adds a new InferiorThread.ptid_string attribute. This
read-only attribute contains the string returned by target_pid_to_str,
which actually converts a ptid (not pid) to a string.
This is the string that appears (at least in part) in the output of
'info threads' in the 'Target Id' column, but also in the thread
exited message that GDB prints.
Having access to this string from Python is useful for allowing
extensions identify threads in a similar way to how GDB core would
identify the thread.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -91,6 +91,10 @@ show remote thread-options-packet ** New function gdb.interrupt(), that interrupts GDB as if the user typed control-c. + ** New gdb.InferiorThread.ptid_string attribute. This read-only + attribute contains the string that appears in the 'Target Id' + column of the 'info threads' command output. + * Debugger Adapter Protocol changes ** GDB now emits the "process" event. |