gdb/testsuite: Expand gdb.cp/mb-ctor.exp to test dynamic allocation
authorBruno Larsen <blarsen@redhat.com>
Tue, 7 Jun 2022 19:07:07 +0000 (16:07 -0300)
committerBruno Larsen <blarsen@redhat.com>
Thu, 30 Jun 2022 17:13:08 +0000 (14:13 -0300)
commit0b1505c82dc5bb593608bb72c1db0496088f2d25
tree38b7447b33c7d09ecfc3fd3f42fb33bc72ca766d
parentaa40d66bb18c7aa068179f42de52327a0711834e
gdb/testsuite: Expand gdb.cp/mb-ctor.exp to test dynamic allocation

When testing GDB's ability to stop in constructors, gdb.cp/mb-ctor.exp
only tested objects allocated on the stack. This commit adds a couple of
dynamic allocations and tests if GDB can stop in it as well.
gdb/testsuite/gdb.cp/mb-ctor.cc
gdb/testsuite/gdb.cp/mb-ctor.exp