old-cross-binutils/gdb/testsuite/lib
Pedro Alves 4043f22ba5 Get rid of "No such file or directory" in the testsuite's btrace support detection.
When I tried running the btrace tests, I noticed something odd in the gdb.log file:

 (gdb) run
 Starting program: /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.btrace/btrace22343.x
 Breakpoint 1, main () at /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.btrace/btrace22343.c:1
 1       /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.btrace/btrace22343.c: No such file or directory.
                                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^
 (gdb) record btrace
 Target does not support branch tracing.
 (gdb) testcase ../../../src/gdb/testsuite/gdb.btrace/enable.exp completed in 0 seconds

I knew that the btrace tests on my machine weren't supposed to work,
but still, that error made me wonder if the test had something broken,
and waste a few minutes looking up where that is coming from.

The issue is that the btrace detection deletes the source file right
after compiling it, and before GDB has a chance to open it.  It's
really harmless, but I'd rather spare others from going through the
same exercise.

We now get the regular:

 (gdb) run
 Starting program: /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.btrace/btrace24210.x
 ...
 Breakpoint 1, main () at /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.btrace/btrace24210.c:1
 1       int main(void) { return 0; }
 ...

gdb/testsuite/
2013-03-26  Pedro Alves  <palves@redhat.com>

	* lib/gdb.exp (skip_btrace_tests): Delay deleting the source file
	until after GDB has run.
2013-03-26 18:26:05 +00:00
..
ada.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
append_gdb_boards_dir.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
cell.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
cl_util.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
cl_util.h Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
compiler.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
compiler.cc Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
cp-support.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
dwarf.exp 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> 2013-02-01 18:08:52 +00:00
fortran.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
future.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb-python.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.exp Get rid of "No such file or directory" in the testsuite's btrace support detection. 2013-03-26 18:26:05 +00:00
gdbserver-support.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
go.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
java.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
mi-support.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
objc.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
opencl.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
opencl_hostapp.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
opencl_kernel.cl
pascal.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
prelink-support.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
prompt.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00
set_unbuffered_mode.c Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
trace-support.exp gdb/testsuite/ 2013-03-14 13:34:06 +00:00