From: Thomas Preud'homme Date: Wed, 29 Nov 2017 13:40:59 +0000 (+0000) Subject: [gdb/testsuite] Fix return type of psymtab-parameter X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ed6c0bfb2643861636581ac8775144efa1728c7c;p=deliverable%2Fbinutils-gdb.git [gdb/testsuite] Fix return type of psymtab-parameter As pointed out by Pedro Alves, psymtab-parameter testcase rely on the return type being long. This patch revert the changes made in f106e10e5e80265e1c43532bba4cb997a7dfa022 and change psymtab-parameter.cc to return 0 long instead. 2017-11-29 Thomas Preud'homme gdb/testsuite/ * gdb.cp/psymtab-parameter.cc (func): Change return type back to long. Return 0 as a long. * gdb.cp/psymtab-parameter.exp: Change func's return type back to long. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 23d3cc2783..87b917e0c5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-11-29 Thomas Preud'homme + + * gdb.cp/psymtab-parameter.cc (func): Change return type back to long. + Return 0 as a long. + * gdb.cp/psymtab-parameter.exp: Change func's return type back to long. + 2017-11-29 Thomas Preud'homme * gdb.cp/breakpoint.cc (bar): Set return type to void. diff --git a/gdb/testsuite/gdb.cp/psymtab-parameter.cc b/gdb/testsuite/gdb.cp/psymtab-parameter.cc index 9f63fefcae..63038f0323 100644 --- a/gdb/testsuite/gdb.cp/psymtab-parameter.cc +++ b/gdb/testsuite/gdb.cp/psymtab-parameter.cc @@ -16,9 +16,10 @@ along with this program. If not, see . */ template -void +long func () { + return 0L; } void diff --git a/gdb/testsuite/gdb.cp/psymtab-parameter.exp b/gdb/testsuite/gdb.cp/psymtab-parameter.exp index 5c4b6ac719..3d78de91f4 100644 --- a/gdb/testsuite/gdb.cp/psymtab-parameter.exp +++ b/gdb/testsuite/gdb.cp/psymtab-parameter.exp @@ -31,6 +31,6 @@ gdb_test_no_output "set language c++" # XFAIL than FAIL here. For example -readnow breaks it. gdb_test_no_output "maintenance info symtabs" -# GDB has shown only the `void func()' ELF symbol before, not the DWARF +# GDB has shown only the `long func()' ELF symbol before, not the DWARF # symbol gdb_test "complete p 'func(" "p 'func\\(\\)"