binutils-gdb/gdb/contrib
Tom de Vries 0df0352ad0 [gdb/contrib] cc-with-tweaks.sh: Create .dwz file in .tmp subdir
When running a test-case gdb.base/foo.exp with cc-with-dwz-m, a file
build/gdb/testsuite/outputs/gdb.base/foo/foo.dwz will be created, alongside
executable build/gdb/testsuite/outputs/gdb.base/foo/foo.

This can cause problems in f.i. test-cases that test file name completion.

Make these problems less likely by moving foo.dwz to a .tmp subdir:
build/gdb/testsuite/outputs/gdb.base/foo/.tmp/foo.dwz.

Tested on x86_64-linux.

gdb/ChangeLog:

2019-09-29  Tom de Vries  <tdevries@suse.de>

	* contrib/cc-with-tweaks.sh (get_tmpdir): New function.
	Use $tmpdir/$(basename "$output_file").dwz instead of
	"${output_file}.dwz".

gdb/testsuite/ChangeLog:

2019-09-29  Tom de Vries  <tdevries@suse.de>

        * gdb.dwarf2/gdb-index.exp: Handle new location of .dwz file.
2019-09-29 23:58:21 +02:00
..
ari Change ARI to mention C++11, and remove some rules 2019-07-19 09:37:00 -06:00
cc-with-tweaks.sh [gdb/contrib] cc-with-tweaks.sh: Create .dwz file in .tmp subdir 2019-09-29 23:58:21 +02:00
expect-read1.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
expect-read1.sh Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
gdb-add-index.sh [gdb/contrib] Fix gdb/contrib/gdb-add-index.sh for dwz-m-ed execs 2019-06-16 23:57:17 +02:00
test_pubnames_and_indexes.py Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00