[gdb/testsuite] Add xfail in gdb.cp/subtypes.exp
authorTom de Vries <tdevries@suse.de>
Mon, 28 Aug 2023 11:46:36 +0000 (13:46 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 28 Aug 2023 11:46:36 +0000 (13:46 +0200)
commitf5362c933e2280398d7aea3cc0748bec8f66a1ab
treecef69954414897029949e07d68ec1359bb0e8c06
parent6871e2180fcaf0b0478b932306992a7b37999f2f
[gdb/testsuite] Add xfail in gdb.cp/subtypes.exp

When running test-case gdb.cp/subtypes.exp with gcc 4.8.4, we run into:
...
FAIL: gdb.cp/subtypes.exp: ptype main::Foo
FAIL: gdb.cp/subtypes.exp: ptype main::Bar
FAIL: gdb.cp/subtypes.exp: ptype main::Baz
FAIL: gdb.cp/subtypes.exp: ptype foobar<int>::Foo
FAIL: gdb.cp/subtypes.exp: ptype foobar<int>::Bar
FAIL: gdb.cp/subtypes.exp: ptype foobar<int>::Baz
FAIL: gdb.cp/subtypes.exp: ptype foobar<char>::Foo
FAIL: gdb.cp/subtypes.exp: ptype foobar<char>::Bar
FAIL: gdb.cp/subtypes.exp: ptype foobar<char>::Baz
...

The problem is gcc PR debug/55541, which generates a superfluous
DW_TAG_lexical_block.

Add a corresponding xfail.

Tested on x86_64-linux.
gdb/testsuite/gdb.cp/subtypes.exp