[gdb/symtab] Support .gdb_index section with TUs in .debug_info
authorTom de Vries <tdevries@suse.de>
Mon, 12 Sep 2022 08:05:18 +0000 (10:05 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 12 Sep 2022 08:05:18 +0000 (10:05 +0200)
commitabe47e91d8c4b40429bc5834f8a91c25b10172ca
tree9cbe3e4f0f320a7714099537b91bf69a40ae748a
parent52b920c5d2098a7319bcae3f31c0d1fb58d40c38
[gdb/symtab] Support .gdb_index section with TUs in .debug_info

The .gdb_index variant of commit d878bb39e41 ("[gdb/symtab] Support
.debug_names section with TUs in .debug_info").

Tested on x86_64-linux.
gdb/dwarf2/read.c
gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp [new file with mode: 0644]