after gdb_run_cmd, gdb_expect -> gdb_test_multiple/gdb_test
authorPedro Alves <palves@redhat.com>
Fri, 12 Sep 2014 21:16:31 +0000 (22:16 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 12 Sep 2014 21:16:31 +0000 (22:16 +0100)
commitfa43b1d7ca8d9699a253b1f227e91c406a043a0b
treecde814e330d7e2657020cf31199edbddc47934fe
parentf37f681c2bb884e74cd33340617a6d1a408d1a75
after gdb_run_cmd, gdb_expect -> gdb_test_multiple/gdb_test

See:
  https://sourceware.org/ml/gdb-patches/2014-09/msg00404.html

We have a number of places that do gdb_run_cmd followed by gdb_expect,
when it would be better to use gdb_test_multiple or gdb_test.

This converts all that "grep gdb_run_cmd -A 2 | grep gdb_expect"
found.

Tested on x86_64 Fedora 20, native and gdbserver.

gdb/testsuite/
2014-09-12  Pedro Alves  <palves@redhat.com>

* gdb.arch/gdb1558.exp: Replace uses of gdb_expect after
gdb_run_cmd with gdb_test_multiple or gdb_test throughout.
* gdb.arch/i386-size-overlap.exp: Likewise.
* gdb.arch/i386-size.exp: Likewise.
* gdb.arch/i386-unwind.exp: Likewise.
* gdb.base/a2-run.exp: Likewise.
* gdb.base/break.exp: Likewise.
* gdb.base/charset.exp: Likewise.
* gdb.base/chng-syms.exp: Likewise.
* gdb.base/commands.exp: Likewise.
* gdb.base/dbx.exp: Likewise.
* gdb.base/find.exp: Likewise.
* gdb.base/funcargs.exp: Likewise.
* gdb.base/jit-simple.exp: Likewise.
* gdb.base/reread.exp: Likewise.
* gdb.base/sepdebug.exp: Likewise.
* gdb.base/step-bt.exp: Likewise.
* gdb.cp/mb-inline.exp: Likewise.
* gdb.cp/mb-templates.exp: Likewise.
* gdb.objc/basicclass.exp: Likewise.
* gdb.threads/killed.exp: Likewise.
21 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/gdb1558.exp
gdb/testsuite/gdb.arch/i386-size-overlap.exp
gdb/testsuite/gdb.arch/i386-size.exp
gdb/testsuite/gdb.arch/i386-unwind.exp
gdb/testsuite/gdb.base/a2-run.exp
gdb/testsuite/gdb.base/break.exp
gdb/testsuite/gdb.base/charset.exp
gdb/testsuite/gdb.base/chng-syms.exp
gdb/testsuite/gdb.base/commands.exp
gdb/testsuite/gdb.base/dbx.exp
gdb/testsuite/gdb.base/find.exp
gdb/testsuite/gdb.base/funcargs.exp
gdb/testsuite/gdb.base/jit-simple.exp
gdb/testsuite/gdb.base/reread.exp
gdb/testsuite/gdb.base/sepdebug.exp
gdb/testsuite/gdb.base/step-bt.exp
gdb/testsuite/gdb.cp/mb-inline.exp
gdb/testsuite/gdb.cp/mb-templates.exp
gdb/testsuite/gdb.objc/basicclass.exp
gdb/testsuite/gdb.threads/killed.exp