binutils-gdb/gdb/testsuite
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
..
boards
config
gdb.ada
gdb.arch
gdb.asm
gdb.base New commands "mt set per-command {space,time,symtab} {on,off}". 2013-03-21 17:37:30 +00:00
gdb.btrace record-btrace: fix assertion when enabling recording after re-run 2013-03-26 07:15:09 +00:00
gdb.cell
gdb.cp PR symtab/11462: 2013-03-25 17:28:03 +00:00
gdb.disasm
gdb.dwarf2
gdb.fortran
gdb.gdb
gdb.go
gdb.hp
gdb.java
gdb.linespec
gdb.mi
gdb.modula2
gdb.multi
gdb.objc
gdb.opencl
gdb.opt
gdb.pascal
gdb.python
gdb.reverse
gdb.server gdb/ 2013-03-22 20:39:29 +00:00
gdb.stabs
gdb.threads
gdb.trace gdb/testsuite/ 2013-03-26 12:46:24 +00:00
gdb.xml
lib Get rid of "No such file or directory" in the testsuite's btrace support detection. 2013-03-26 18:26:05 +00:00
aclocal.m4
ChangeLog Get rid of "No such file or directory" in the testsuite's btrace support detection. 2013-03-26 18:26:05 +00:00
configure
configure.ac
dg-extract-results.sh
Makefile.in
TODO