binutils-gdb/gdb/testsuite/gdb.server
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
..
ext-attach.c
ext-attach.exp testsuite: refactor spawn and wait for attach 2014-09-11 13:04:14 +01:00
ext-run.exp
file-transfer.exp
Makefile.in
no-thread-db.c
no-thread-db.exp Specify source file explicitly when setting a breakpoint 2014-05-26 09:11:15 +08:00
server-exec-info.exp
server-kill.c
server-kill.exp
server-mon.exp New gdbserver option --debug-format=timestamp. 2014-01-22 14:17:39 -08:00
server-run.exp
server.c
solib-list-lib.c
solib-list-main.c
solib-list.exp enable target async by default; separate MI and target notions of async 2014-05-29 14:38:02 +01:00
transfer.txt
wrapper.c
wrapper.exp