diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-05-05 21:45:13 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-05-05 21:45:13 +0000 |
commit | a4cb37cb10bee4f1346029a10eadee608a4206b3 (patch) | |
tree | 82dad774f2c621430848711a2bcdd228d053807f /gdb/testsuite/gdb.base/annota1.c | |
parent | b890a735690f7a138eb890d7bbe15e53e02f6175 (diff) | |
download | gdb-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.c | 33 |
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; +} + |