* [PATCH, gdb] Fix expect for gdb.cp/m-static.exp
@ 2017-03-16 14:04 Thomas Preudhomme
0 siblings, 0 replies; only message in thread
From: Thomas Preudhomme @ 2017-03-16 14:04 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
Hi,
The expectation in gdb.cp/m-static.exp for the ptype of
single_constructor is to get in the result of destructor with the
following prototype: ~single_constructor(int).
Yet, m-static.cc declares the destructor as ~single_constructor(). This
commit fixes the expectation.
ChangeLog entry is as follows:
*** gdb/testsuite/ChangeLog ***
2017-03-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
* gdb.cp/m-static.exp: Fix expectation for prototype of
test5.single_constructor and single_constructor::single_constructor.
Committed as obvious.
Best regards,
Thomas
[-- Attachment #2: fix_gdbcp_mstatic_expect.patch --]
[-- Type: text/x-patch, Size: 1361 bytes --]
diff --git a/gdb/testsuite/gdb.cp/m-static.exp b/gdb/testsuite/gdb.cp/m-static.exp
index 2e56653556ae311e386432fc7fcb5ffddcea6f4b..52eea1ad80e6231b4c2c1bff4e123100ec8cf23a 100644
--- a/gdb/testsuite/gdb.cp/m-static.exp
+++ b/gdb/testsuite/gdb.cp/m-static.exp
@@ -74,10 +74,10 @@ if { [is_aarch32_target] } {
{ = {single_constructor \*\(single_constructor \* const\)} 0x[0-9a-f]+ <single_constructor::single_constructor\(\)>} \
"simple object instance, print constructor"
gdb_test "ptype test5.single_constructor" \
- {type = class single_constructor {\r\n public:\r\n single_constructor\(void\);\r\n ~single_constructor\(int\);\r\n} \*\(single_constructor \* const\)} \
+ {type = class single_constructor {\r\n public:\r\n single_constructor\(void\);\r\n ~single_constructor\(\);\r\n} \*\(single_constructor \* const\)} \
"simple object instance, ptype constructor"
gdb_test "ptype single_constructor::single_constructor" \
- {type = class single_constructor {\r\n public:\r\n single_constructor\(void\);\r\n ~single_constructor\(int\);\r\n} \*\(single_constructor \* const\)} \
+ {type = class single_constructor {\r\n public:\r\n single_constructor\(void\);\r\n ~single_constructor\(\);\r\n} \*\(single_constructor \* const\)} \
"simple object class, ptype constructor"
gdb_test "print test1.~gnu_obj_1" \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-16 14:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 14:04 [PATCH, gdb] Fix expect for gdb.cp/m-static.exp Thomas Preudhomme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).