diff options
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; +} |