Add C++ "save gdb-index" test
authorTom Tromey <tom@tromey.com>
Tue, 12 Apr 2022 13:55:40 +0000 (07:55 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 12 Apr 2022 14:05:39 +0000 (08:05 -0600)
commitce70f11ffe868ba5c71594b43badd60552e29bb4
treee25dccc38533a34c6d99d405f564f13b0a89fc5e
parentdc262faf37718ecb3fbe5fc77bc7726ff311012c
Add C++ "save gdb-index" test

I found a bug in the new DWARF reader series, related to the handling
of enumerator names.  This bug caused a crash, so this patch adds a
regression test for this particular case.  I'm checking this in.
gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/index.cc [new file with mode: 0644]