aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-gnu-cfi.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2007-01-21 22:41:41 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2007-01-21 22:41:41 +0000
commit43a9b631fc1ea45b4537e99c467d47782c76dd5d (patch)
treefa7b489d7ed8291f4186806b3ffa53bcf24d2a92 /gdb/testsuite/gdb.arch/i386-gnu-cfi.c
parent97c3f1f3a232263f9f02788c70d70682d7981794 (diff)
downloadgdb-43a9b631fc1ea45b4537e99c467d47782c76dd5d.zip
gdb-43a9b631fc1ea45b4537e99c467d47782c76dd5d.tar.gz
gdb-43a9b631fc1ea45b4537e99c467d47782c76dd5d.tar.bz2
* gdb.arch/i386-gnu-cfi.exp, gdb.arch/i386-gnu-cfi.c,
gdb.arch/i386-gnu-cfi-asm.S: New files.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-gnu-cfi.c')
-rw-r--r--gdb/testsuite/gdb.arch/i386-gnu-cfi.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-gnu-cfi.c b/gdb/testsuite/gdb.arch/i386-gnu-cfi.c
new file mode 100644
index 0000000..e8d04ce
--- /dev/null
+++ b/gdb/testsuite/gdb.arch/i386-gnu-cfi.c
@@ -0,0 +1,31 @@
+/* Unwinding of DW_CFA_GNU_negative_offset_extended test program.
+
+ Copyright 2007, Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ 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 <stdlib.h>
+
+/* i386-gnu-cfi-asm.S: */
+extern void *gate (void *(*gate) (void *data), void *data);
+
+int main (void)
+{
+ gate ((void *(*) (void *data)) abort, NULL);
+ return 0;
+}