[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
f106e10e5e
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.
This commit is contained in:
parent
d785b7d4b8
commit
ed6c0bfb26
|
@ -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.
|
||||
|
|
|
@ -16,9 +16,10 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
template <typename T>
|
||||
void
|
||||
long
|
||||
func ()
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -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>\\(\\)"
|
||||
|
|
Loading…
Reference in New Issue