binutils-gdb/gdb/testsuite/gdb.reverse
Yao Qi 45fd756caf Increase timeout in watch-bitfields.exp for software watchpoint
I see the following two timeout fails on pandaboard (arm-linux target),

 FAIL: gdb.base/watch-bitfields.exp: -location watch against bitfields: continue until exit (timeout)
 FAIL: gdb.base/watch-bitfields.exp: regular watch against bitfields: continue until exit (timeout)

In this test, more than one watchpoint is used, so the following
watchpoint requests fall back to software watchpoint, so that GDB
will single step all the way and it is very slow.

This patch is to copy the fix from

  [PATCH] GDB/testsuite: Correct gdb.base/watchpoint-solib.exp timeout tweak
  https://sourceware.org/ml/gdb-patches/2014-07/msg00716.html

I find the left-over of this patch review is to factor out code into
a procedure, so I do that in this patch.

Re-run tests watch-bitfields.exp, watchpoint-solib.exp, sigall-reverse.exp,
and until-precsave.exp on pandaboard, no regression.

gdb/testsuite:

2015-04-15  Pedro Alves  <palves@redhat.com>
	    Yao Qi  <yao.qi@linaro.org>

	* gdb.base/watch-bitfields.exp (test_watch_location): Increase
	timeout by factor of 4.
	(test_regular_watch): Likewise.
	* gdb.base/watchpoint-solib.exp: Use with_timeout_factor.
	* gdb.reverse/sigall-reverse.exp: Likewise.
	* gdb.reverse/until-precsave.exp: Likewise.
	* lib/gdb.exp (with_timeout_factor): New proc.
	(gdb_expect): Move some code to ...
	(get_largest_timeout): ... here.  New procedure.
2015-04-15 12:46:58 +01:00
..
Makefile.in
amd64-tailcall-reverse.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
amd64-tailcall-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
break-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
break-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
break-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
consecutive-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
consecutive-reverse.c Remove testsuite compile errors with GCC5. 2015-01-25 18:50:56 +01:00
consecutive-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
finish-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
finish-reverse-bkpt.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
finish-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
finish-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-sse-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i386-sse-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i387-env-reverse.c
i387-env-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
i387-stack-reverse.c
i387-stack-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
machinestate-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
machinestate.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
machinestate.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ms1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
next-reverse-bkpt-over-sr.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
rerun-prec.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
rerun-prec.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
shr.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
shr1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
shr2.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
sigall-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
sigall-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
sigall-reverse.exp Increase timeout in watch-bitfields.exp for software watchpoint 2015-04-15 12:46:58 +01:00
singlejmp-reverse-nodebug.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
singlejmp-reverse-nodebug.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
singlejmp-reverse.S Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
singlejmp-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
singlejmp-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
solib-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
solib-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
solib-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
step-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
step-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
step-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
until-precsave.exp Increase timeout in watch-bitfields.exp for software watchpoint 2015-04-15 12:46:58 +01:00
until-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
until-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ur1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
watch-precsave.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
watch-reverse.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
watch-reverse.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00