old-cross-binutils/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
..
amd64-tailcall-reverse.c
amd64-tailcall-reverse.exp
amd64-tailcall-reverse.S
break-precsave.exp
break-reverse.c
break-reverse.exp
consecutive-precsave.exp
consecutive-reverse.c
consecutive-reverse.exp
finish-precsave.exp
finish-reverse-bkpt.exp
finish-reverse.c
finish-reverse.exp
i386-precsave.exp
i386-reverse.c
i386-reverse.exp
i386-sse-reverse.c
i386-sse-reverse.exp
i387-env-reverse.c
i387-env-reverse.exp
i387-stack-reverse.c
i387-stack-reverse.exp
machinestate-precsave.exp
machinestate.c
machinestate.exp
Makefile.in
ms1.c
next-reverse-bkpt-over-sr.exp
rerun-prec.c
rerun-prec.exp
shr.h
shr1.c
shr2.c
sigall-precsave.exp
sigall-reverse.c
sigall-reverse.exp
singlejmp-reverse-nodebug.c
singlejmp-reverse-nodebug.S
singlejmp-reverse.c
singlejmp-reverse.exp
singlejmp-reverse.S
solib-precsave.exp
solib-reverse.c
solib-reverse.exp
step-precsave.exp
step-reverse.c
step-reverse.exp
until-precsave.exp
until-reverse.c
until-reverse.exp
ur1.c
watch-precsave.exp
watch-reverse.c
watch-reverse.exp