binutils-gdb/gdb/testsuite/gdb.multi
Pedro Alves 4c92ff2c35 testsuite: refactor spawn and wait for attach
Several places in the testsuite have a copy of a snippet of code that
spawns a test program, waits a bit, and then does some PID munging for
Cygwin.  This is in order to have GDB attach to the spawned program.

This refactors all that to a common procedure.

(multi-attach.exp wants to spawn multiple processes, so this makes the
new procedure's interface work with lists.)

Tested on x86_64 Fedora 20.

gdb/testsuite/ChangeLog:
2014-09-11  Pedro Alves  <palves@redhat.com>

	* lib/gdb.exp (spawn_wait_for_attach): New procedure.
	* gdb.base/attach.exp (do_attach_tests, do_call_attach_tests)
	(do_command_attach_tests): Use spawn_wait_for_attach.
	* gdb.base/solib-overlap.exp: Likewise.
	* gdb.multi/multi-attach.exp: Likewise.
	* gdb.python/py-prompt.exp: Likewise.
	* gdb.python/py-sync-interp.exp: Likewise.
	* gdb.server/ext-attach.exp: Likewise.
2014-09-11 13:04:14 +01:00
..
Makefile.in
base.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
bkpt-multi-exec.c fix some "exec" tests 2013-11-04 11:02:10 -07:00
bkpt-multi-exec.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
crashme.c
dummy-frame-restore.c Associate dummy_frame with ptid 2014-06-27 20:06:56 +08:00
dummy-frame-restore.exp Associate dummy_frame with ptid 2014-06-27 20:06:56 +08:00
goodbye.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
hangout.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
hello.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
multi-arch-exec.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
multi-arch-exec.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
multi-arch.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
multi-attach.c PR server/16255: gdbserver cannot attach to a second inferior that is multi-threaded. 2014-04-25 19:07:33 +01:00
multi-attach.exp testsuite: refactor spawn and wait for attach 2014-09-11 13:04:14 +01:00
watchpoint-multi.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
watchpoint-multi.exp enable target async by default; separate MI and target notions of async 2014-05-29 14:38:02 +01:00