From 984971d0d4f724518630d011d0a37a273fde7447 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 29 Jun 2005 15:01:49 +0000 Subject: [PATCH] * gdb.base/sigrepeat.c: Include and add return type for main to avoid warnings. * gdb.base/sigrepeat.exp: Fix reference to undefined variable. --- gdb/testsuite/ChangeLog | 7 +++++++ gdb/testsuite/gdb.base/sigrepeat.c | 2 ++ gdb/testsuite/gdb.base/sigrepeat.exp | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 58fd3169958..1a523d3c9f0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2005-06-29 Andreas Schwab + + * gdb.base/sigrepeat.c: Include and add return type for + main to avoid warnings. + + * gdb.base/sigrepeat.exp: Fix reference to undefined variable. + 2005-06-20 Nick Roberts * gdb.mi/mi-stack.exp (test_stack_locals_listing): Remove test for diff --git a/gdb/testsuite/gdb.base/sigrepeat.c b/gdb/testsuite/gdb.base/sigrepeat.c index a21486dde47..704a758f966 100644 --- a/gdb/testsuite/gdb.base/sigrepeat.c +++ b/gdb/testsuite/gdb.base/sigrepeat.c @@ -19,6 +19,7 @@ */ #include +#include #include #include #include @@ -73,6 +74,7 @@ handler (int sig) } } /* handler */ +int main () { int i; diff --git a/gdb/testsuite/gdb.base/sigrepeat.exp b/gdb/testsuite/gdb.base/sigrepeat.exp index 7abe68fbcdb..ae3639da936 100644 --- a/gdb/testsuite/gdb.base/sigrepeat.exp +++ b/gdb/testsuite/gdb.base/sigrepeat.exp @@ -36,7 +36,7 @@ set testfile sigrepeat set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested "Couldn't compile ${module}.c" + untested "Couldn't compile ${srcfile}" return -1 } -- 2.30.2