old-cross-binutils/gdb/testsuite/lib
Yao Qi b4429ea262 Check tracefile is generated by binary execution
In gdb.trace/tfile.exp, we execute binary to generate tracefile,

  remote_exec target "$binfile"

however, this fails on bare metal target.  This patch is to
handle binary execution failure by running binary in GDB.
The binary will do some io operation to generate tracefile, so
we need a check 'target_info exists gdb,nofileio'.

This patch is to check whether tracefile is generated.  tfile.exp can
be skipped if generation is failed, while test_tfind_tfile in
mi-traceframe-changed.exp is skipped if generated failed.  The rest of
the mi-traceframe-changed.exp can still be executed, because on some
bare metal targets, the remote stub supports tracepoint but doesn't
support fileio.

gdb/testsuite:

2014-04-22  Yao Qi  <yao@codesourcery.com>

	* lib/trace-support.exp (generate_tracefile): New procedure.
	* gdb.trace/tfile.exp: Skip the test if generate_tracefile
	return 0.
	* gdb.trace/mi-traceframe-changed.exp: Invoke test_tfind_tfile
	if generate_tracefile returns 1.
2014-04-22 09:57:44 +08:00
..
ada.exp
append_gdb_boards_dir.exp
cache.exp
cell.exp
cl_util.c
cl_util.h
compiler.c Add support to recognize clang. 2014-04-07 14:14:03 -07:00
compiler.cc Add support to recognize clang. 2014-04-07 14:14:03 -07:00
cp-support.exp
d-support.exp
dwarf.exp
fortran.exp
future.exp
gdb-guile.exp
gdb-python.exp
gdb.exp Drop prefix from unsupported source path. 2014-04-17 10:52:43 +01:00
gdbserver-support.exp Fix wrapper.exp testcase with stdio gdbserver. 2014-04-16 10:40:41 -07:00
go.exp
java.exp
mi-support.exp Fix PR breakpoints/16101: gdb.base/dprintf.exp agent-printf failures with non-Z0-supporting gdbservers 2014-03-24 19:30:50 +00:00
objc.exp
opencl.exp
opencl_hostapp.c
opencl_kernel.cl
pascal.exp
perftest.exp
prelink-support.exp
prompt.exp
range-stepping-support.exp
selftest-support.exp
set_unbuffered_mode.c
trace-support.exp Check tracefile is generated by binary execution 2014-04-22 09:57:44 +08:00