aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2005-06-29 15:01:49 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2005-06-29 15:01:49 +0000
commit984971d0d4f724518630d011d0a37a273fde7447 (patch)
tree4e96ed30e5551daed667c2d89eaf94aacb9c5812 /gdb/testsuite/gdb.base
parent39c2f51bd9f82438706973c4b92597a945d9c4df (diff)
downloadgdb-984971d0d4f724518630d011d0a37a273fde7447.zip
gdb-984971d0d4f724518630d011d0a37a273fde7447.tar.gz
gdb-984971d0d4f724518630d011d0a37a273fde7447.tar.bz2
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/sigrepeat.c2
-rw-r--r--gdb/testsuite/gdb.base/sigrepeat.exp2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/sigrepeat.c b/gdb/testsuite/gdb.base/sigrepeat.c
index a21486d..704a758 100644
--- a/gdb/testsuite/gdb.base/sigrepeat.c
+++ b/gdb/testsuite/gdb.base/sigrepeat.c
@@ -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;
diff --git a/gdb/testsuite/gdb.base/sigrepeat.exp b/gdb/testsuite/gdb.base/sigrepeat.exp
index 7abe68f..ae3639d 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
}