binutils-gdb/gdb/testsuite/gdb.dwarf2
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
..
ada-linkage-name.c Handle either order of name and linkage name 2019-06-28 08:37:38 -06:00
ada-linkage-name.exp Handle either order of name and linkage name 2019-06-28 08:37:38 -06:00
ada-valprint-error.c
ada-valprint-error.exp
arr-stride.c
arr-stride.exp
arr-subrange.c
arr-subrange.exp
atomic-type.exp
atomic.c
bad-regnum.c
bad-regnum.exp
bitfield-parent-optimized-out.exp
callframecfa.S
callframecfa.exp
clztest.S
clztest.c
clztest.exp
comp-unit-lang.c
comp-unit-lang.exp
corrupt.c
corrupt.exp
count.exp
data-loc.c
data-loc.exp
dup-psym.S
dup-psym.exp
dw2-abs-hi-pc-hello-dbg.S
dw2-abs-hi-pc-hello.c
dw2-abs-hi-pc-world-dbg.S
dw2-abs-hi-pc-world.c
dw2-abs-hi-pc.c
dw2-abs-hi-pc.exp
dw2-ada-ffffffff.S
dw2-ada-ffffffff.exp
dw2-align.exp
dw2-anon-mptr.S
dw2-anon-mptr.exp
dw2-anonymous-func.S
dw2-anonymous-func.exp
dw2-bad-mips-linkage-name.c
dw2-bad-mips-linkage-name.exp
dw2-bad-parameter-type.S
dw2-bad-parameter-type.exp
dw2-bad-unresolved.c
dw2-bad-unresolved.exp
dw2-basic.S
dw2-basic.exp
dw2-canonicalize-type.S
dw2-canonicalize-type.exp
dw2-case-insensitive-debug.S
dw2-case-insensitive.c
dw2-case-insensitive.exp
dw2-common-block.S
dw2-common-block.exp
dw2-compdir-oldgcc.S
dw2-compdir-oldgcc.exp
dw2-compressed.S
dw2-compressed.exp
dw2-const.S
dw2-const.exp
dw2-cp-infcall-ref-static-main.c
dw2-cp-infcall-ref-static.S
dw2-cp-infcall-ref-static.exp
dw2-cu-size.S
dw2-cu-size.exp
dw2-dir-file-name.c
dw2-dir-file-name.exp Disable dw2-dir-file-name.exp on remote and/or Windows host. 2019-08-15 10:41:58 -07:00
dw2-dos-drive.S
dw2-dos-drive.exp
dw2-double-set-die-type.S
dw2-double-set-die-type.exp
dw2-dummy-cu.S
dw2-dummy-cu.exp
dw2-dup-frame.S
dw2-dup-frame.c
dw2-dup-frame.exp
dw2-empty-namespace.S
dw2-empty-namespace.exp
dw2-empty-pc-range.S
dw2-empty-pc-range.exp
dw2-entry-value-main.c
dw2-entry-value.S
dw2-entry-value.exp
dw2-error.S
dw2-error.c
dw2-error.exp
dw2-filename.S
dw2-filename.exp
dw2-icc-opaque.S
dw2-icc-opaque.exp
dw2-icycle.S
dw2-icycle.c
dw2-icycle.exp
dw2-ifort-parameter.c
dw2-ifort-parameter.exp
dw2-inheritance.S
dw2-inheritance.exp
dw2-inline-break.S
dw2-inline-break.exp
dw2-inline-param-main.c
dw2-inline-param.S
dw2-inline-param.exp
dw2-intercu.S
dw2-intercu.exp
dw2-intermix.S
dw2-intermix.exp
dw2-lexical-block-bare.exp
dw2-linkage-name-trust-main.cc
dw2-linkage-name-trust.S
dw2-linkage-name-trust.exp
dw2-minsym-in-cu.S
dw2-minsym-in-cu.exp
dw2-modula2-self-type.S
dw2-modula2-self-type.exp
dw2-namespaceless-anonymous.S
dw2-namespaceless-anonymous.exp
dw2-noloc-main.c
dw2-noloc.S
dw2-noloc.exp
dw2-objfile-overlap-inner.S
dw2-objfile-overlap-outer.S
dw2-objfile-overlap.exp
dw2-op-call.S
dw2-op-call.exp
dw2-op-out-param.S
dw2-op-out-param.exp
dw2-op-stack-value.S
dw2-op-stack-value.exp
dw2-opt-structptr.c
dw2-opt-structptr.exp
dw2-param-error-main.c
dw2-param-error.S
dw2-param-error.exp
dw2-producer.S
dw2-producer.exp
dw2-ranges-base.c
dw2-ranges-base.exp
dw2-ranges-func-hi-cold.c Improve test gdb.dwarf2/dw2-ranges-func.exp 2019-07-27 13:38:44 -07:00
dw2-ranges-func-lo-cold.c Improve test gdb.dwarf2/dw2-ranges-func.exp 2019-07-27 13:38:44 -07:00
dw2-ranges-func.exp Fix stepping bug associated with non-contiguous blocks 2019-07-27 13:43:10 -07:00
dw2-ranges-main.c
dw2-ranges-psym.c
dw2-ranges-psym.exp
dw2-ranges.c
dw2-ranges.exp
dw2-ranges2.c
dw2-ranges3.c
dw2-ref-missing-frame-func.c
dw2-ref-missing-frame-main.c
dw2-ref-missing-frame.S
dw2-ref-missing-frame.exp
dw2-reg-undefined.S
dw2-reg-undefined.c
dw2-reg-undefined.exp
dw2-regno-invalid.exp
dw2-restore.S
dw2-restore.exp
dw2-restrict.S [gdb/testsuite] Regenerate dw2-restrict.S 2019-06-25 16:42:46 +02:00
dw2-restrict.c
dw2-restrict.exp
dw2-simple-locdesc.S
dw2-simple-locdesc.exp
dw2-single-line-discriminators.S
dw2-single-line-discriminators.c
dw2-single-line-discriminators.exp
dw2-skip-prologue.S
dw2-skip-prologue.c
dw2-skip-prologue.exp
dw2-stack-boundary.S
dw2-stack-boundary.exp
dw2-strp.S
dw2-strp.exp
dw2-undefined-ret-addr.S
dw2-undefined-ret-addr.c
dw2-undefined-ret-addr.exp
dw2-unresolved-main.c
dw2-unresolved.S
dw2-unresolved.exp
dw2-unusual-field-names.c
dw2-unusual-field-names.exp
dw2-var-zero-addr.S
dw2-var-zero-addr.exp
dw4-sig-type-unused.S
dw4-sig-type-unused.exp
dw4-sig-types-b.cc
dw4-sig-types.cc
dw4-sig-types.exp
dw4-sig-types.h
dwp-sepdebug.c
dwp-sepdebug.exp
dwp-symlink.c
dwp-symlink.exp
dwz.exp
dwzbuildid.exp
dynarr-ptr.c
dynarr-ptr.exp
enum-type.exp
file1.txt
fission-base.S
fission-base.c
fission-base.exp
fission-loclists-pie.S
fission-loclists-pie.exp
fission-loclists.S
fission-loclists.exp
fission-mix.c
fission-mix.exp
fission-mix.h
fission-mix2.c
fission-multi-cu.S
fission-multi-cu.exp
fission-multi-cu1.c
fission-multi-cu2.c
fission-reread.S
fission-reread.exp
formdata16.c
formdata16.exp
gdb-add-index.exp
gdb-index.exp [gdb/contrib] cc-with-tweaks.sh: Create .dwz file in .tmp subdir 2019-09-29 23:58:21 +02:00
implptr-64bit.exp [gdb/testsuite] Fix label reference in implptr-64bit.exp 2019-06-24 18:26:10 +02:00
implptr-optimized-out.exp
implptr.S
implptr.c
implptr.exp
implptrconst.c
implptrconst.exp
implptrpiece.exp
implref-array.c
implref-array.exp
implref-const.exp
implref-global.c
implref-global.exp
implref-struct.c
implref-struct.exp
info-locals-optimized-out.c
info-locals-optimized-out.exp
inlined_subroutine-inheritance.exp [gdb/testsuite] Fix inter-cu refs in inlined_subroutine-inheritance.exp 2019-06-24 12:20:39 +02:00
mac-fileno.S
mac-fileno.exp
main-subprogram.c
main-subprogram.exp
main.c
member-ptr-forwardref.S
member-ptr-forwardref.exp
method-ptr.cc
method-ptr.exp
missing-sig-type.exp
missing-type-name.exp
multidictionary.exp [gdb/testsuite] Add missing initial prompt read in multidictionary.exp 2019-07-23 15:15:20 +02:00
nonvar-access.exp
nostaticblock.exp
opaque-type-lookup-2.c
opaque-type-lookup.c
opaque-type-lookup.exp
pieces-optimized-out.S
pieces-optimized-out.c
pieces-optimized-out.exp
pieces.S
pieces.c
pieces.exp
pr10770.c
pr10770.exp
pr11465.S
pr11465.exp
pr13961.S
pr13961.exp
shortpiece.exp
staticvirtual.exp
subrange.exp
symtab-producer.exp
trace-crash.S
trace-crash.exp
typeddwarf-amd64.S
typeddwarf.S
typeddwarf.c
typeddwarf.exp
typedef-void-finish.exp
valop.S
valop.exp
var-access.c
var-access.exp
variant.c
variant.exp
varval.c
varval.exp [gdb/testsuite] Compile varval twice, once without bad DWARF 2019-06-26 15:04:05 +02:00
void-type.c
void-type.exp
watch-notconst.c
watch-notconst.exp
watch-notconst2.S
watch-notconst2.c