aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/common-utils.cc
diff options
context:
space:
mode:
authorBruno Larsen <blarsen@redhat.com>2022-09-09 15:56:25 +0200
committerBruno Larsen <blarsen@redhat.com>2022-11-11 10:13:39 +0100
commitf2f2eb6b0e77eebbbe06a2515053dc874598bee9 (patch)
tree6016c0e4b54bae4bbf3473192b2b02ff3ced7371 /gdbsupport/common-utils.cc
parent42dde3f3643cdf372b8f40beafa3f2c888aaf92a (diff)
downloadbinutils-f2f2eb6b0e77eebbbe06a2515053dc874598bee9.zip
binutils-f2f2eb6b0e77eebbbe06a2515053dc874598bee9.tar.gz
binutils-f2f2eb6b0e77eebbbe06a2515053dc874598bee9.tar.bz2
gdb/testsuite: allow for Clang style destructors on gdb.cp/m-static.exp
when running gdb.cp/m-static.exp using Clang, we get the following failures: print test1.~gnu_obj_1^M $6 = {void (gnu_obj_1 * const)} 0x555555555470 <gnu_obj_1::~gnu_obj_1()>^M (gdb) FAIL: gdb.cp/m-static.exp: simple object instance, print destructor ptype test1.~gnu_obj_1^M type = void (gnu_obj_1 * const)^M (gdb) FAIL: gdb.cp/m-static.exp: simple object instance, ptype destructor print test1.'~gnu_obj_1'^M $7 = {void (gnu_obj_1 * const)} 0x555555555470 <gnu_obj_1::~gnu_obj_1()>^M (gdb) FAIL: gdb.cp/m-static.exp: simple object instance, print quoted destructor This is because the test is expecting an extra integer parameter on the destructor. Looking at the debuginfo, it seems that there is nothing actually wrong with this output, so these tests were changed to test multiple possible regexps. Approved-by: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdbsupport/common-utils.cc')
0 files changed, 0 insertions, 0 deletions