old-cross-binutils/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
..
base.exp
bkpt-multi-exec.c
bkpt-multi-exec.exp
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
hangout.c
hello.c
Makefile.in
multi-arch-exec.c
multi-arch-exec.exp
multi-arch.exp
multi-attach.c
multi-attach.exp testsuite: refactor spawn and wait for attach 2014-09-11 13:04:14 +01:00
watchpoint-multi.c
watchpoint-multi.exp enable target async by default; separate MI and target notions of async 2014-05-29 14:38:02 +01:00