[gdb/testsuite] Add gdb.dwarf2/debug-names-tu.exp
authorTom de Vries <tdevries@suse.de>
Tue, 6 Sep 2022 08:15:00 +0000 (10:15 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 6 Sep 2022 08:15:00 +0000 (10:15 +0200)
commit4c146f5d60fe91c5aa337331a68c435298daedbb
tree7713cff8fb933be19eed62b40648e8a428675049
parent9869e2e5c7964039328013a283461d1826dbf96c
[gdb/testsuite] Add gdb.dwarf2/debug-names-tu.exp

Add a test-case gdb.dwarf2/debug-names-tu.exp, that uses the dwarf assembler
to specify a .debug_names index with the TU list referring to a TU from the
.debug_types section.

This is intended to produce something similar to:
...
$ gcc -g -fdebug-types-section ~/hello.c -gdwarf-4
$ gdb-add-index -dwarf-5 a.out
...

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/debug-names-tu.exp [new file with mode: 0644]
gdb/testsuite/lib/dwarf.exp