mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
[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 <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:
@ -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>
|
2017-11-29 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||||||
|
|
||||||
* gdb.cp/breakpoint.cc (bar): Set return type to void.
|
* 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/>. */
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void
|
long
|
||||||
func ()
|
func ()
|
||||||
{
|
{
|
||||||
|
return 0L;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -31,6 +31,6 @@ gdb_test_no_output "set language c++"
|
|||||||
# XFAIL than FAIL here. For example -readnow breaks it.
|
# XFAIL than FAIL here. For example -readnow breaks it.
|
||||||
gdb_test_no_output "maintenance info symtabs"
|
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
|
# symbol
|
||||||
gdb_test "complete p 'func<short>(" "p 'func<short>\\(\\)"
|
gdb_test "complete p 'func<short>(" "p 'func<short>\\(\\)"
|
||||||
|
Reference in New Issue
Block a user