Fix calls in gdb.arch/thumb2-it.exp

Tests in gdb.arch/thumb2-it.exp call functions defined in assembly
without type debugging information. Since
7022349d5c ("Stop assuming no-debug-info
functions return int") this triggers an error which leads to many tests
to FAIL. This patch cast the call to indicate the return type of the
functions when calling them.

2017-09-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>

gdb/testsuite/
	* gdb.arch/thumb2-it.exp: Cast call to assembly defined function.
This commit is contained in:
Thomas Preud'homme 2017-09-06 17:54:26 +01:00
parent 28ad437d7a
commit 8f8f815255
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2017-09-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
* gdb.arch/thumb2-it.exp: Cast call to assembly defined function.
2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.threads/tls-nodebug-pie.c: New file.

View File

@ -58,7 +58,7 @@ proc test_it_block { func } {
return
}
gdb_test "call ${func}()" "Breakpoint.*@ Setup.*" "$func, call"
gdb_test "call (int) ${func}()" "Breakpoint.*@ Setup.*" "$func, call"
set expected 0
set reached 0
@ -155,7 +155,7 @@ for { set i 1 } { $i <= 8 } { incr i } {
}
gdb_breakpoint "*it_breakpoints"
gdb_test "call it_breakpoints()" "Breakpoint.*"
gdb_test "call (int) it_breakpoints()" "Breakpoint.*"
for { set i 1 } { $i <= 7 } { incr i } {
test_it_break ${i}
}