diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index bad4382e8b..f0e026d090 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2015-12-10 Pedro Alves + + * gdb.multi/base.exp: Don't use nowarnings. + * gdb.multi/bkpt-multi-exec.exp: Don't use nowarnings. + * gdb.multi/hangout.c: Include stdio.h. + * gdb.multi/hello.c: Include stdlib.h. + * gdb.multi/multi-arch-exec.c: Include stdlib.h. + * gdb.multi/multi-arch-exec.exp: Don't use nowarnings. + * gdb.multi/multi-arch.exp: Don't use nowarnings. + 2015-12-10 Andrew Burgess * gdb.dwarf2/dw2-ranges-base.c: New file. diff --git a/gdb/testsuite/gdb.multi/base.exp b/gdb/testsuite/gdb.multi/base.exp index 78b913ce5c..b58e49a380 100644 --- a/gdb/testsuite/gdb.multi/base.exp +++ b/gdb/testsuite/gdb.multi/base.exp @@ -30,15 +30,15 @@ set exec3 "goodbye" set srcfile3 ${exec3}.c set binfile3 [standard_output_file ${exec3}] -if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" {debug nowarnings}] == -1 } { +if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" {debug}] == -1 } { return -1 } -if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" {debug nowarnings}] == -1} { +if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" {debug}] == -1} { return -1 } -if { [build_executable ${testfile}.exp ${exec3} "${srcfile3}" {debug nowarnings}] == -1 } { +if { [build_executable ${testfile}.exp ${exec3} "${srcfile3}" {debug}] == -1 } { return -1 } diff --git a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp index 4f572bb0a7..e66c1ba43c 100644 --- a/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp +++ b/gdb/testsuite/gdb.multi/bkpt-multi-exec.exp @@ -33,7 +33,7 @@ set exec2 "crashme" set srcfile2 ${exec2}.c set binfile2 [standard_output_file ${exec2}] -set compile_options {debug nowarnings} +set compile_options {debug} set dirname [relative_filename [pwd] [file dirname $binfile1]] lappend compile_options "additional_flags=-DBASEDIR=\"$dirname\"" diff --git a/gdb/testsuite/gdb.multi/hangout.c b/gdb/testsuite/gdb.multi/hangout.c index c67b6216c0..0ac2650e81 100644 --- a/gdb/testsuite/gdb.multi/hangout.c +++ b/gdb/testsuite/gdb.multi/hangout.c @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include + main(int argc, char *argv[]) { int i; diff --git a/gdb/testsuite/gdb.multi/hello.c b/gdb/testsuite/gdb.multi/hello.c index 0233c961d2..a7c11f7731 100644 --- a/gdb/testsuite/gdb.multi/hello.c +++ b/gdb/testsuite/gdb.multi/hello.c @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include + short hglob = 1; short glob = 92; diff --git a/gdb/testsuite/gdb.multi/multi-arch-exec.c b/gdb/testsuite/gdb.multi/multi-arch-exec.c index 4c8dfaa286..918af4bb2e 100644 --- a/gdb/testsuite/gdb.multi/multi-arch-exec.c +++ b/gdb/testsuite/gdb.multi/multi-arch-exec.c @@ -15,6 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include #include #include diff --git a/gdb/testsuite/gdb.multi/multi-arch-exec.exp b/gdb/testsuite/gdb.multi/multi-arch-exec.exp index 67020d92e1..a54f408ea0 100644 --- a/gdb/testsuite/gdb.multi/multi-arch-exec.exp +++ b/gdb/testsuite/gdb.multi/multi-arch-exec.exp @@ -54,13 +54,13 @@ if [istarget "s390*-*-*"] { set dirname [relative_filename [pwd] [file dirname $binfile2]] if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" \ - [list debug nowarnings \ + [list debug \ additional_flags=${march1} \ additional_flags=-DBASEDIR=\"$dirname\"]] } { return -1 } -set options [list debug nowarnings] +set options [list debug] if { [istarget "aarch64*-*-*"] } { if {[info exists ARM_CC_FOR_TARGET]} { diff --git a/gdb/testsuite/gdb.multi/multi-arch.exp b/gdb/testsuite/gdb.multi/multi-arch.exp index 70d0a0978b..986e663f1c 100644 --- a/gdb/testsuite/gdb.multi/multi-arch.exp +++ b/gdb/testsuite/gdb.multi/multi-arch.exp @@ -53,11 +53,11 @@ if [istarget "s390*-*-*"] { } if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" \ - [list debug nowarnings additional_flags=${march1}]] } { + [list debug additional_flags=${march1}]] } { return -1 } -set options [list debug nowarnings] +set options [list debug] if [istarget "aarch64*-*-*"] { if {[info exists ARM_CC_FOR_TARGET]} {