diff options
author | Pedro Alves <palves@redhat.com> | 2016-01-07 20:15:07 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-01-07 23:30:50 +0000 |
commit | 28e385afb8c564c570d3173fec106af8da9bed6f (patch) | |
tree | f0040ddc3f6e0ea88f716c23bcee2c4a6b240685 /gdb/NEWS | |
parent | 5bd9a36eccd4900e466dbeb8e8ce87b71aef2b32 (diff) | |
download | binutils-gdb-28e385afb8c564c570d3173fec106af8da9bed6f.tar.gz |
Add $_gthread convenience variableusers/palves/thread-ids-per-inferior
This commit adds a new $_gthread convenience variable, that is like
$_thread, but holds the current thread's global thread id.
gdb/ChangeLog:
2016-01-06 Pedro Alves <palves@redhat.com>
* NEWS: Mention $_gthread.
* gdbthread.h (struct thread_info) <global_num>: Mention
$_gthread.
* thread.c (thread_num_make_value_helper): New function.
(thread_id_make_value): Delete.
(thread_id_per_inf_num_make_value, global_thread_id_make_value):
New.
(thread_funcs): Adjust.
(gthread_funcs): New.
(_initialize_thread): Register $_gthread variable.
gdb/testsuite/ChangeLog:
2016-01-06 Pedro Alves <palves@redhat.com>
* gdb.base/default.exp: Expect $_gthread as well.
* gdb.multi/tids.exp: Test $_gthread.
* gdb.threads/thread-specific.exp: Test $_gthread.
gdb/doc/ChangeLog:
2016-01-06 Pedro Alves <palves@redhat.com>
* gdb.texinfo (Threads): Document the $_gthread convenience
variable.
(Convenience Vars): Likewise.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -22,7 +22,7 @@ GDB now maintains a second thread ID per thread, referred to as the global thread ID, which is the new equivalent of thread numbers in - previous releases. + previous releases. See also $_gthread below. For backwards compatibility, MI's thread IDs always refer to global IDs. @@ -37,6 +37,9 @@ * You can use "info threads -gid" to display the global thread ID of all threads. +* The new convenience variable $_gthread holds the global number of + the current thread. + * The new convenience variable $_inferior holds the number of the current inferior. |