binutils-gdb/gdb/testsuite/gdb.multi
Pedro Alves 663f6d42f4 Add $_gthread convenience variable
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-13  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-13  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-13  Pedro Alves  <palves@redhat.com>

	* gdb.texinfo (Threads): Document the $_gthread convenience
	variable.
	(Convenience Vars): Likewise.
2016-01-13 11:03:19 +00:00
..
base.exp Add a new $_inferior convenience variable 2016-01-13 10:56:05 +00:00
bkpt-multi-exec.c
bkpt-multi-exec.exp
crashme.c
dummy-frame-restore.c
dummy-frame-restore.exp
goodbye.c
hangout.c
hello.c
info-threads.exp Per-inferior/Inferior-qualified thread IDs 2016-01-13 10:59:43 +00:00
Makefile.in
multi-arch-exec.c
multi-arch-exec.exp
multi-arch.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
multi-attach.c
multi-attach.exp
tids.c Per-inferior/Inferior-qualified thread IDs 2016-01-13 10:59:43 +00:00
tids.exp Add $_gthread convenience variable 2016-01-13 11:03:19 +00:00
watchpoint-multi.c
watchpoint-multi.exp