aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/relativedebug.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-01-09 22:43:09 +0000
committerDaniel Jacobowitz <drow@false.org>2007-01-09 22:43:09 +0000
commit818f79f66bf25893345147c0a573ac855fcc9cf3 (patch)
tree894b42d354670ae0e2105d349274d25d1c2bc980 /gdb/testsuite/gdb.base/relativedebug.c
parentf7a6bb70398a545baf43a6c3ef867b05844d9396 (diff)
downloadbinutils-818f79f66bf25893345147c0a573ac855fcc9cf3.zip
binutils-818f79f66bf25893345147c0a573ac855fcc9cf3.tar.gz
binutils-818f79f66bf25893345147c0a573ac855fcc9cf3.tar.bz2
2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
* symtab.c (matching_bfd_sections): Fix VMA matching for prelinked objects. * gdb.base/relativedebug.c, gdb.base/relativedebug.exp: New files.
Diffstat (limited to 'gdb/testsuite/gdb.base/relativedebug.c')
-rw-r--r--gdb/testsuite/gdb.base/relativedebug.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/relativedebug.c b/gdb/testsuite/gdb.base/relativedebug.c
new file mode 100644
index 0000000..60f4ea9
--- /dev/null
+++ b/gdb/testsuite/gdb.base/relativedebug.c
@@ -0,0 +1,37 @@
+/* This testcase is part of GDB, the GNU debugger.
+
+ Copyright 2007 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA. */
+
+#include <unistd.h>
+#include <stdlib.h>
+#include <signal.h>
+
+
+static void handler (int signo)
+{
+ abort ();
+}
+
+int main (void)
+{
+ signal (SIGALRM, handler);
+ alarm (1);
+ pause ();
+ pause ();
+ return 0;
+}