* gdb.base/sigrepeat.c: Include <stdlib.h> and add return type for
authorAndreas Schwab <schwab@linux-m68k.org>
Wed, 29 Jun 2005 15:01:49 +0000 (15:01 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Wed, 29 Jun 2005 15:01:49 +0000 (15:01 +0000)
main to avoid warnings.

* gdb.base/sigrepeat.exp: Fix reference to undefined variable.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/sigrepeat.c
gdb/testsuite/gdb.base/sigrepeat.exp

index 58fd31699580fc1399046843e445a68e1c2dfce0..1a523d3c9f04d294e92c5066e9cb649dd7e58688 100644 (file)
@@ -1,3 +1,10 @@
+2005-06-29  Andreas Schwab  <schwab@suse.de>
+
+       * gdb.base/sigrepeat.c: Include <stdlib.h> and add return type for
+       main to avoid warnings.
+
+       * gdb.base/sigrepeat.exp: Fix reference to undefined variable.
+
 2005-06-20  Nick Roberts  <nickrob@snap.net.nz>
 
        * gdb.mi/mi-stack.exp (test_stack_locals_listing): Remove test for
index a21486dde47e032ff33206eae56c6abbf545adea..704a758f966ca411ad40ca0aa3932e98c5cfdee1 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <signal.h>
 #include <sys/time.h>
@@ -73,6 +74,7 @@ handler (int sig)
     }
 } /* handler */
 
+int
 main ()
 {
   int i;
index 7abe68fbcdba881a900d220415ad6e8fe0bb3d33..ae3639da9360758ff72843a3af4f8080ae1fc3b5 100644 (file)
@@ -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
 }