old-cross-binutils/gdb/testsuite/gdb.threads
Don Breazeal a8f077dc25 Target remote mode fork and exec test updates
This patch updates tests for fork and exec events in target remote mode.
In the majority of cases this was a simple matter of removing some code
that disabled the test for target remote.  In a few cases the test needed
to be disabled; in those cases the gdb_protocol was checked instead of
using the [is_remote target] etc.

In a couple of cases we needed to use clean_restart, since target remote
doesn't support the run command, and in one case we had to modify an expect
expression to allow for a "multiprocess-style" ptid.

Tested with the patch that implemented target remote mode fork and exec
event support.

gdb/testsuite/ChangeLog:

	* gdb.base/execl-update-breakpoints.exp (main): Enable for target
	remote.
	* gdb.base/foll-exec-mode.exp (main): Disable for target remote.
	* gdb.base/foll-exec.exp (main): Enable for target remote.
	* gdb.base/foll-fork.exp (main): Likewise.
	* gdb.base/foll-vfork.exp (main): Likewise.
	* gdb.base/multi-forks.exp (main): Likewise, and use clean_restart.
	(proc continue_to_exit_bp_loc): Use clean_restart.
	* gdb.base/pie-execl.exp (main): Disable for target remote.
	* gdb.base/watch-vfork.exp (main): Enable for target remote.
	* gdb.mi/mi-nsthrexec.exp (main): Likewise.
	* gdb.threads/execl.exp (main): Likewise.
	* gdb.threads/fork-child-threads.exp (main): Likewise.
	* gdb.threads/fork-plus-threads.exp (main): Disable for target
	remote.
	* gdb.threads/fork-thread-pending.exp (main): Enable for target
	remote.
	* gdb.threads/linux-dp.exp (check_philosopher_stack): Allow
	pid.tid style ptids, instead of just tid.
	* gdb.threads/thread-execl.exp (main): Enable for target remote.
	* gdb.threads/watchpoint-fork.exp (main): Likewise.
	* gdb.trace/report.exp (use_collected_data): Allow pid.tid style
	ptids, instead of just tid.
2015-12-14 11:18:05 -08:00
..
attach-into-signal.c
attach-into-signal.exp testsuite: tcl exec& -> 'kill -9 $pid' is racy (attach-many-short-lived-thread.exp races and others) 2015-07-31 20:06:24 +01:00
attach-many-short-lived-threads.c
attach-many-short-lived-threads.exp testsuite: tcl exec& -> 'kill -9 $pid' is racy (attach-many-short-lived-thread.exp races and others) 2015-07-31 20:06:24 +01:00
attach-stopped.c
attach-stopped.exp testsuite: tcl exec& -> 'kill -9 $pid' is racy (attach-many-short-lived-thread.exp races and others) 2015-07-31 20:06:24 +01:00
bp_in_thread.c
bp_in_thread.exp
break-while-running.c
break-while-running.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
clone-new-thread-event.c
clone-new-thread-event.exp
clone-thread_db.c
clone-thread_db.exp
continue-pending-after-query.c
continue-pending-after-query.exp
continue-pending-status.c
continue-pending-status.exp
corethreads.c
corethreads.exp
create-fail.c
create-fail.exp
current-lwp-dead.c
current-lwp-dead.exp
dlopen-libpthread-lib.c
dlopen-libpthread.c
dlopen-libpthread.exp
execl.c
execl.exp Target remote mode fork and exec test updates 2015-12-14 11:18:05 -08:00
execl1.c
fork-child-threads.c
fork-child-threads.exp Target remote mode fork and exec test updates 2015-12-14 11:18:05 -08:00
fork-plus-threads.c PR threads/18600: Threads left stopped after fork+thread spawn 2015-07-30 18:50:29 +01:00
fork-plus-threads.exp Target remote mode fork and exec test updates 2015-12-14 11:18:05 -08:00
fork-thread-pending.c
fork-thread-pending.exp Target remote mode fork and exec test updates 2015-12-14 11:18:05 -08:00
forking-threads-plus-breakpoint.c Revert "test slowdown" 2015-08-06 12:45:45 +01:00
forking-threads-plus-breakpoint.exp Revert "test slowdown" 2015-08-06 12:45:45 +01:00
gcore-stale-thread.c
gcore-stale-thread.exp
gcore-thread.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
hand-call-in-threads.c
hand-call-in-threads.exp Improve hand-call-in-threads.exp failure handling. 2015-09-08 19:49:04 -07:00
hand-call-new-thread.c PR threads/18127 - threads spawned by infcall end up stuck in "running" state 2015-06-29 16:07:57 +01:00
hand-call-new-thread.exp PR threads/18127 - threads spawned by infcall end up stuck in "running" state 2015-06-29 16:07:57 +01:00
ia64-sigill.c
ia64-sigill.exp
info-threads-cur-sal-2.c
info-threads-cur-sal.c
info-threads-cur-sal.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
interrupted-hand-call.c
interrupted-hand-call.exp
kill.c
kill.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
killed.c
killed.exp
leader-exit.c
leader-exit.exp
linux-dp.c
linux-dp.exp Target remote mode fork and exec test updates 2015-12-14 11:18:05 -08:00
local-watch-wrong-thread.c
local-watch-wrong-thread.exp
Makefile.in
manythreads.c
manythreads.exp gdb.threads/manythreads.exp: can't read "test": no such variable 2015-04-01 15:30:13 +01:00
multi-create-ns-info-thr.exp
multi-create.c
multi-create.exp
multiple-step-overs.c Add test for PR18214 and PR18216 - multiple step-overs with queued signals 2015-04-08 19:59:03 +01:00
multiple-step-overs.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
names.c Add test for thread names 2015-11-26 13:09:30 -05:00
names.exp Add test for thread names 2015-11-26 13:09:30 -05:00
next-bp-other-thread.c
next-bp-other-thread.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
next-while-other-thread-longjmps.c stepping is disturbed by setjmp/longjmp | try/catch in other threads 2015-08-05 20:01:42 +01:00
next-while-other-thread-longjmps.exp stepping is disturbed by setjmp/longjmp | try/catch in other threads 2015-08-05 20:01:42 +01:00
no-unwaited-for-left.c
no-unwaited-for-left.exp Implement TARGET_WAITKIND_NO_RESUMED in the remote protocol 2015-11-30 18:43:24 +00:00
non-ldr-exc-1.c
non-ldr-exc-1.exp Extended-remote exec test 2015-09-11 11:12:46 -07:00
non-ldr-exc-2.c
non-ldr-exc-2.exp Extended-remote exec test 2015-09-11 11:12:46 -07:00
non-ldr-exc-3.c
non-ldr-exc-3.exp Fix gdb.threads/non-ldr-exc-3.exp race 2015-09-15 17:01:59 +01:00
non-ldr-exc-4.c
non-ldr-exc-4.exp Extended-remote exec test 2015-09-11 11:12:46 -07:00
non-ldr-exit.c PR gdb/18717: internal error if non-leader thread exits process 2015-07-24 17:49:17 +01:00
non-ldr-exit.exp PR gdb/18717: internal error if non-leader thread exits process 2015-07-24 17:49:17 +01:00
non-stop-fair-events.c non-stop-fair-events.exp slower on software single-step && !displ-step targets 2015-09-16 15:51:36 +01:00
non-stop-fair-events.exp non-stop-fair-events.exp slower on software single-step && !displ-step targets 2015-09-16 15:51:36 +01:00
pending-step.c
pending-step.exp
print-threads.c
print-threads.exp
process-dies-while-handling-bp.c Test for PR18749: problems if whole process dies while (ptrace-) stopped 2015-08-06 12:33:20 +01:00
process-dies-while-handling-bp.exp Test for PR18749: problems if whole process dies while (ptrace-) stopped 2015-08-06 12:33:20 +01:00
pthread_cond_wait.c
pthread_cond_wait.exp
pthreads.c
pthreads.exp
queue-signal.c
queue-signal.exp
reconnect-signal.c
reconnect-signal.exp
schedlock.c
schedlock.exp Make "set scheduler-locking step" depend on user intention, only 2015-03-24 17:50:31 +00:00
siginfo-threads.c
siginfo-threads.exp
signal-command-handle-nopass.c
signal-command-handle-nopass.exp
signal-command-multiple-signals-pending.c
signal-command-multiple-signals-pending.exp
signal-delivered-right-thread.c
signal-delivered-right-thread.exp
signal-sigtrap.c
signal-sigtrap.exp
signal-while-stepping-over-bp-other-thread.c
signal-while-stepping-over-bp-other-thread.exp Fix signal-while-stepping-over-bp-other-thread.exp on targets always in non-stop 2015-08-07 17:26:20 +01:00
sigstep-threads.c
sigstep-threads.exp
sigthread.c
sigthread.exp
staticthreads.c
staticthreads.exp
step-bg-decr-pc-switch-thread.c
step-bg-decr-pc-switch-thread.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
step-over-lands-on-breakpoint.c Fix step-over-{trips-on-watchpoint|lands-on-breakpoint}.exp race 2015-08-07 17:26:21 +01:00
step-over-lands-on-breakpoint.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
step-over-trips-on-watchpoint.c Fix step-over-{trips-on-watchpoint|lands-on-breakpoint}.exp race 2015-08-07 17:26:21 +01:00
step-over-trips-on-watchpoint.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
stepi-random-signal.c
stepi-random-signal.exp
switch-threads.c
switch-threads.exp
thread-execl.c
thread-execl.exp Target remote mode fork and exec test updates 2015-12-14 11:18:05 -08:00
thread-find.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
thread-specific-bp.c
thread-specific-bp.exp
thread-specific.c
thread-specific.exp
thread-unwindonsignal.exp
thread_check.c
thread_check.exp
thread_events.c
thread_events.exp
threadapply.c
threadapply.exp
threxit-hop-specific.c
threxit-hop-specific.exp
tid-reuse.c Crash on thread id wrap around 2015-04-01 13:38:06 +01:00
tid-reuse.exp Crash on thread id wrap around 2015-04-01 13:38:06 +01:00
tls-main.c
tls-nodebug.c
tls-nodebug.exp
tls-shared.c
tls-shared.exp
tls-so_extern.c Fix PR/18564 - regression in showing __thread so extern variable 2015-09-15 21:12:39 +02:00
tls-so_extern.exp Fix PR/18564 - regression in showing __thread so extern variable 2015-09-15 21:12:39 +02:00
tls-so_extern_main.c Fix PR/18564 - regression in showing __thread so extern variable 2015-09-15 21:12:39 +02:00
tls-var-main.c
tls-var.c
tls-var.exp
tls.c
tls.exp List inferiors/threads/pspaces in ascending order 2015-11-24 18:36:31 +00:00
tls2.c
watchpoint-fork-child.c
watchpoint-fork-mt.c
watchpoint-fork-parent.c
watchpoint-fork-st.c
watchpoint-fork.exp Target remote mode fork and exec test updates 2015-12-14 11:18:05 -08:00
watchpoint-fork.h
watchthreads-reorder.c
watchthreads-reorder.exp
watchthreads.c
watchthreads.exp
watchthreads2.c
watchthreads2.exp
wp-replication.c Simplify gdb.threads/wp-replication.exp on counting HW watchpoints 2015-10-30 15:54:58 +00:00
wp-replication.exp Simplify gdb.threads/wp-replication.exp on counting HW watchpoints 2015-10-30 15:54:58 +00:00