old-cross-binutils/gdb/testsuite/gdb.trace
Pedro Alves 4496bed7f3 Fix gdb.trace/{actions,infotrace,while-stepping}.exp with extended-remote
The recent actions.exp change to check gdb_run_cmd succeeded caught
further problems.  The test now fails like this
with --target_board=native-extended-gdbserver:

 FAIL: gdb.trace/actions.exp: Can't run to main

gdb.log shows:

 (gdb) run
 Starting program: /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.trace/actions
 Running the default executable on the remote target failed; try "set remote exec-file"?
 (gdb) FAIL: gdb.trace/actions.exp: Can't run to main

The problem is that a gdb_load call is missing.

Grepping around for similar problems in other tests, I found that
infotrace.exp and while-stepping.exp should be likewise affected.  And
indeed this is what we get today:

 FAIL: gdb.trace/infotrace.exp: tstart
 FAIL: gdb.trace/infotrace.exp: continue to end (the program is no longer running)
 FAIL: gdb.trace/infotrace.exp: tstop
 FAIL: gdb.trace/infotrace.exp: 2.6: info tracepoints (trace buffer usage)
 FAIL: gdb.trace/while-stepping.exp: tstart
 FAIL: gdb.trace/while-stepping.exp: tstop
 FAIL: gdb.trace/while-stepping.exp: tfile: info tracepoints
 FAIL: gdb.trace/while-stepping.exp: ctf: info tracepoints

while-stepping.exp even has the same race bug actions.exp had.

After this, {actions,infotrace,while-stepping}.exp all pass cleanly
with the native-extended-gdbserver board.

gdb/testsuite/ChangeLog:
2015-04-08  Pedro Alves  <palves@redhat.com>

	* gdb.trace/actions.exp: Use gdb_load before gdb_run_cmd.
	* gdb.trace/infotrace.exp: Use gdb_load before gdb_run_cmd.  Use
	gdb_breakpoint instead of gdb_test that doesn't expect anything.
	Return early if running to main fails.
	* gdb.trace/while-stepping.exp: Likewise.
2015-04-08 10:39:43 +01:00
..
actions-changed.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions.exp Fix gdb.trace/{actions,infotrace,while-stepping}.exp with extended-remote 2015-04-08 10:39:43 +01:00
ax.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
backtrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc-1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc-2.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
circ.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
circ.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
collection.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
collection.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
deltrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
disconnected-tracing.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
disconnected-tracing.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
entry-values.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
entry-values.exp Require numeric attributes to specify the form. 2015-01-11 15:45:43 -08:00
ftrace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ftrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
infotrace.exp Fix gdb.trace/{actions,infotrace,while-stepping}.exp with extended-remote 2015-04-08 10:39:43 +01:00
Makefile.in gdbserver: Fix crash when QTinit is handled with no inferior process attached 2015-02-10 13:49:41 -05:00
mi-trace-frame-collected.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-trace-unavailable.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-traceframe-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-tracepoint-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-tsv-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
no-attach-trace.c gdbserver: Fix crash when QTinit is handled with no inferior process attached 2015-02-10 13:49:41 -05:00
no-attach-trace.exp Fix no-attach-trace.exp with "target remote" / gdbserver 2015-02-20 19:50:36 +00:00
packetlen.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
passc-dyn.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
passcount.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pending.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pending.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pendshr1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pendshr2.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pr16508.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
qtro.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
qtro.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
range-stepping.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
range-stepping.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
read-memory.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
read-memory.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
report.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
save-trace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
stap-trace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
stap-trace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
status-stop.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
status-stop.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
strace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
strace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfile.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfile.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfind.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-break.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-break.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-buffer-size.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-buffer-size.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-mt.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-mt.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-unavailable.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tracecmd.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tspeed.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tspeed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tstatus.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tsv.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable-dwarf-piece.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable-dwarf-piece.exp Require numeric attributes to specify the form. 2015-01-11 15:45:43 -08:00
unavailable.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
while-dyn.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
while-stepping.exp Fix gdb.trace/{actions,infotrace,while-stepping}.exp with extended-remote 2015-04-08 10:39:43 +01:00