binutils-gdb/gdb/testsuite/gdb.threads
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
..
Makefile.in
attach-into-signal.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
attach-into-signal.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
attach-many-short-lived-threads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
attach-many-short-lived-threads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
attach-stopped.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
attach-stopped.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
bp_in_thread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
bp_in_thread.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-while-running.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-while-running.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
clone-new-thread-event.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
clone-new-thread-event.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
clone-thread_db.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
clone-thread_db.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
continue-pending-after-query.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
continue-pending-after-query.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
continue-pending-status.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
continue-pending-status.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
corethreads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
corethreads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
create-fail.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
create-fail.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
current-lwp-dead.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
current-lwp-dead.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
dlopen-libpthread-lib.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
dlopen-libpthread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
dlopen-libpthread.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
execl.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
execl.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
execl1.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fork-child-threads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fork-child-threads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fork-plus-threads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fork-plus-threads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fork-thread-pending.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fork-thread-pending.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
forking-threads-plus-breakpoint.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
forking-threads-plus-breakpoint.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gcore-stale-thread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gcore-stale-thread.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gcore-thread.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
hand-call-in-threads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
hand-call-in-threads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
hand-call-new-thread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
hand-call-new-thread.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ia64-sigill.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ia64-sigill.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
info-threads-cur-sal-2.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
info-threads-cur-sal.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
info-threads-cur-sal.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
interrupted-hand-call.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
interrupted-hand-call.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
kill.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
kill.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
killed.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
killed.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
leader-exit.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
leader-exit.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
linux-dp.c Remove testsuite compile errors with GCC5. 2015-01-25 18:50:56 +01:00
linux-dp.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
local-watch-wrong-thread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
local-watch-wrong-thread.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
manythreads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
manythreads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
multi-create-ns-info-thr.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
multi-create.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
multi-create.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
multiple-step-overs.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
multiple-step-overs.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
names.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
names.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
next-bp-other-thread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
next-bp-other-thread.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
next-while-other-thread-longjmps.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
next-while-other-thread-longjmps.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
no-unwaited-for-left.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
no-unwaited-for-left.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exc-1.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exc-1.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exc-2.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exc-2.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exc-3.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exc-3.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exc-4.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exc-4.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exit.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-ldr-exit.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-stop-fair-events.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
non-stop-fair-events.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
pending-step.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
pending-step.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
print-threads.c
print-threads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
process-dies-while-handling-bp.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
process-dies-while-handling-bp.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
pthread_cond_wait.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
pthread_cond_wait.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
pthreads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
pthreads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
queue-signal.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
queue-signal.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
reconnect-signal.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
reconnect-signal.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
schedlock.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
schedlock.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
siginfo-threads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
siginfo-threads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-command-handle-nopass.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-command-handle-nopass.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-command-multiple-signals-pending.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-command-multiple-signals-pending.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-delivered-right-thread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-delivered-right-thread.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-sigtrap.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-sigtrap.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-while-stepping-over-bp-other-thread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signal-while-stepping-over-bp-other-thread.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigstep-threads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigstep-threads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigthread.c
sigthread.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
staticthreads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
staticthreads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
step-bg-decr-pc-switch-thread.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
step-bg-decr-pc-switch-thread.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
step-over-lands-on-breakpoint.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
step-over-lands-on-breakpoint.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
step-over-trips-on-watchpoint.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
step-over-trips-on-watchpoint.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
stepi-random-signal.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
stepi-random-signal.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
switch-threads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
switch-threads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread-execl.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread-execl.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread-find.exp Per-inferior/Inferior-qualified thread IDs 2016-01-13 10:59:43 +00:00
thread-specific-bp.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread-specific-bp.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread-specific.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread-specific.exp Add $_gthread convenience variable 2016-01-13 11:03:19 +00:00
thread-unwindonsignal.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread_check.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread_check.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread_events.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
thread_events.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
threadapply.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
threadapply.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
threxit-hop-specific.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
threxit-hop-specific.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tid-reuse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tid-reuse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls-main.c Remove testsuite compile errors with GCC5. 2015-01-25 18:50:56 +01:00
tls-nodebug.c
tls-nodebug.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls-shared.c
tls-shared.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls-so_extern.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls-so_extern.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls-so_extern_main.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls-var-main.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls-var.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls-var.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tls.c
tls.exp Reapply: List inferiors/threads/pspaces in ascending order 2016-01-12 01:12:38 +00:00
tls2.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchpoint-fork-child.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchpoint-fork-mt.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchpoint-fork-parent.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchpoint-fork-st.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchpoint-fork.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchpoint-fork.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchthreads-reorder.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchthreads-reorder.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchthreads.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchthreads.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchthreads2.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watchthreads2.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
wp-replication.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
wp-replication.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00