]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix return type of psymtab-parameter
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 29 Nov 2017 13:40:59 +0000 (13:40 +0000)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 29 Nov 2017 13:41:32 +0000 (13:41 +0000)
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  <thomas.preudhomme@arm.com>

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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/psymtab-parameter.cc
gdb/testsuite/gdb.cp/psymtab-parameter.exp

index 23d3cc2783b59c3ef82da065b8c781b7632ad160..87b917e0c55430a1490943b330b435804e132820 100644 (file)
@@ -1,3 +1,9 @@
+2017-11-29  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * 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  <thomas.preudhomme@arm.com>
 
        * gdb.cp/breakpoint.cc (bar): Set return type to void.
index 9f63fefcaeb800f7444fe74225514d3330036e5b..63038f03237b64ce4bff88e42fee7f836eca3249 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 template <typename T>
-void
+long
 func ()
 {
+  return 0L;
 }
 
 void
index 5c4b6ac71927fe9030bd9ce66111761425ab433b..3d78de91f4b3752d754bd776ae3532700a308a40 100644 (file)
@@ -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<short>()' ELF symbol before, not the DWARF
+# GDB has shown only the `long func<short>()' ELF symbol before, not the DWARF
 # symbol
 gdb_test "complete p 'func<short>(" "p 'func<short>\\(\\)"