aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/annota1.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-05-05 21:45:13 +0000
committerStan Shebs <shebs@codesourcery.com>1999-05-05 21:45:13 +0000
commita4cb37cb10bee4f1346029a10eadee608a4206b3 (patch)
tree82dad774f2c621430848711a2bcdd228d053807f /gdb/testsuite/gdb.base/annota1.c
parentb890a735690f7a138eb890d7bbe15e53e02f6175 (diff)
downloadgdb-a4cb37cb10bee4f1346029a10eadee608a4206b3.zip
gdb-a4cb37cb10bee4f1346029a10eadee608a4206b3.tar.gz
gdb-a4cb37cb10bee4f1346029a10eadee608a4206b3.tar.bz2
import gdb-19990504 snapshot
Diffstat (limited to 'gdb/testsuite/gdb.base/annota1.c')
-rw-r--r--gdb/testsuite/gdb.base/annota1.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/annota1.c b/gdb/testsuite/gdb.base/annota1.c
new file mode 100644
index 0000000..7eeee77
--- /dev/null
+++ b/gdb/testsuite/gdb.base/annota1.c
@@ -0,0 +1,33 @@
+#include <stdio.h>
+#include <signal.h>
+
+#ifdef __sh__
+#define signal(a,b) /* Signals not supported on this target - make them go away */
+#endif
+
+
+void
+handle_USR1 (sig)
+ int sig;
+{
+}
+
+int value;
+
+int
+main ()
+{
+ int my_array[3] = { 1, 2, 3 };
+
+ value = 7;
+
+#ifdef SIGUSR1
+ signal (SIGUSR1, handle_USR1);
+#endif
+
+ printf ("value is %d\n", value);
+ printf ("my_array[2] is %d\n", my_array[2]);
+
+ return 0;
+}
+