[gdb/testsuite] Add test-case gold-gdb-index.exp
authorTom de Vries <tdevries@suse.de>
Tue, 26 May 2020 09:35:32 +0000 (11:35 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 26 May 2020 09:35:32 +0000 (11:35 +0200)
commit40d22035a7fc239ac1e944b75a2e3ee9029d1b76
tree9b7444fb769efdbc09a4cdce15030edef5a8a717
parentc6412eeea9de28f1a7c69c1ea2dc5d736642648f
[gdb/testsuite] Add test-case gold-gdb-index.exp

There's a PR binutils/15646 - "gold-generated .gdb_index has duplicated
symbols that gdb-generated index doesn't", and gdb contains a workaround,
added in commit 8943b87476 "Work around gold/15646".

Add a test-case testing this workaround.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-05-26  Tom de Vries  <tdevries@suse.de>

* gdb.base/gold-gdb-index-2.c: New test.
* gdb.base/gold-gdb-index.c: New test.
* gdb.base/gold-gdb-index.exp: New file.
* gdb.base/gold-gdb-index.h: New test.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/gold-gdb-index-2.c [new file with mode: 0644]
gdb/testsuite/gdb.base/gold-gdb-index.c [new file with mode: 0644]
gdb/testsuite/gdb.base/gold-gdb-index.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/gold-gdb-index.h [new file with mode: 0644]