1 #if HAVE_CONFIG_H
2 #include "config.h"
3 #endif /* HAVE_CONFIG_H */
4
5 #if HAVE_STDIO_H
6 #include <stdio.h>
7 #endif /* HAVE_STDIO_H */
8
9 #include "usage.h"
10
usage(void)11 void usage(void)
12 {
13 printf("CGDB Usage:\n"
14 " cgdb [cgdb options] [--] [gdb options]\n" "\n" "CGDB Options:\n"
15 #ifdef HAVE_GETOPT_H
16 " --version Print version information and then exit.\n"
17 #else
18 " -v Print version information and then exit.\n"
19 #endif
20 #ifdef HAVE_GETOPT_H
21 " --help Print help (this message) and then exit.\n"
22 #else
23 " -h Print help (this message) and then exit.\n"
24 #endif
25 " -d Set debugger to use.\n"
26 " -w Wait for debugger to attach before starting.\n"
27 " -- Marks the end of CGDB's options.\n");
28 }
29