diff options
author | Stan Shebs <shebs@apple.com> | 1999-04-16 01:33:56 +0000 |
---|---|---|
committer | Stan Shebs <shebs@apple.com> | 1999-04-16 01:33:56 +0000 |
commit | 838ae13dc4ab603f1efdf1da653e2ca1b7b009e1 (patch) | |
tree | 8d3c114b0ba9d2a1f0dcadd192ba2aaeeafe7175 /gdb/testsuite/gdb.base/setshow.c | |
download | gdb-838ae13dc4ab603f1efdf1da653e2ca1b7b009e1.tar.gz |
Initial revision
Diffstat (limited to 'gdb/testsuite/gdb.base/setshow.c')
-rw-r--r-- | gdb/testsuite/gdb.base/setshow.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/setshow.c b/gdb/testsuite/gdb.base/setshow.c new file mode 100644 index 00000000000..ed4e7a9a420 --- /dev/null +++ b/gdb/testsuite/gdb.base/setshow.c @@ -0,0 +1,22 @@ +/* IMPORTANT: leave this comment in the first line of this source file. */ +/* this will guarantee that line 1 contains no code. */ + +#include <stdio.h> + +int +main(argc, argv) + int argc; + char **argv; +{ + int i = 1; +#ifdef usestubs + set_debug_traps(); + breakpoint(); +#endif + + if (argc <= 0 || argc > 8) + return -1; + while (i < argc) + printf ("%s ", argv[i++]); + return 0; +} |