[gdb/testsuite] Refactor 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)
commit6871e2180fcaf0b0478b932306992a7b37999f2f
tree16053e80015993950931c5c410f14423c43b7a75
parentc67caa51e47ca301f6d95b34e8d7c89993ba4039
[gdb/testsuite] Refactor gdb.cp/subtypes.exp

Make test-case gdb.cp/subtypes.exp less repetitive by using foreach.

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