8sa1-binutils-gdb/gdb/testsuite/lib
Andrew Burgess 089a949083 gdb/testsuite: Fix broken regexp in gdbstub case
When $use_gdb_stub is true then, when we start an MI target there's a
regexp to match GDB's startup pattern.  Unfortunately the pattern is
broken, and we're also missing a timeout case in the match list (which
would have helped point out that the regexp was broken).

The changes to the regexp are:

  1. Remove '${run_match}' prefix, the issued command doesn't include
  '${run_prefix}' so expecting '${run_match}' is wrong.

  2. Replaced '\\n' with '\\\\n' in order to match literal '\n' in
  GDBs output (that is, match a backslash followed by 'n', not a
  newline character).

  3. Replaced a '.' (matching any character) with '\.' to match a '.'
  and moved the '\.' into the correct place in the regexp.

  4. Replaced '\r\n' with '[\r\n]+' to match the end of a line.  This
  change isn't esential, but matches the other end of line patterns
  within this regexp.

Here's an example of the output that the regexp should match taken
from a testfile log, the first line is the command sent to GDB, and
the remaining lines are the response from GDB:

  jump *_start
  &"jump *_start\n"
  ~"Continuing at 0x10074.\n"
  ^running
  *running,thread-id="all"
  (gdb)

gdb/testsuite/ChangeLog:

	* lib/mi-support.exp (mi_run_cmd_full): Fix regexp and add a
	timeout.
2018-05-04 11:11:45 +01:00
..
ada.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
append_gdb_boards_dir.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
build-piece.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cache.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cell.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cl_util.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cl_util.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compiler.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compiler.cc Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
completion-support.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cp-support.exp Fix double space expected in cp_test_ptype_class 2018-02-25 15:12:37 -05:00
d-support.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
data-structures.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
dtrace.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
dwarf.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
fortran.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
future.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb-guile.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb-python.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb-utils.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gdb.exp Handle alignof and _Alignof 2018-04-30 11:25:31 -06:00
gdbserver-support.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
gen-perf-test.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
go.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
memory.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
mi-support.exp gdb/testsuite: Fix broken regexp in gdbstub case 2018-05-04 11:11:45 +01:00
objc.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
opencl_hostapp.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
opencl_kernel.cl
opencl.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
pascal.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
pdtrace.in Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
perftest.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
prelink-support.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
prompt.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
range-stepping-support.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
read1.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
rust-support.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
selftest-support.exp Testsuite: fully migrate to use_gdb_stub convenience func 2018-03-23 10:38:23 +01:00
set_unbuffered_mode.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
trace-support.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
unbuffer_output.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00