The following table shows the GDB mode options:
Options and Parameters |
Mode |
Description |
---|---|---|
-args file |
Default |
Specifies arguments to send to the debuggee. The first argument represents an executable file. All arguments that follow the filename are command line arguments. |
-batch |
Default |
Causes the debugger to exit with status 0 after processing the initialization files and all the command files specified with `-x' (if not inhibited with `-n'). The debugger exits with a nonzero status if an error occurs in executing debugger's commands from command files. |
-cd dir |
Default |
Specifies a new working directory |
-clomp launcher launcher_args |
Default |
Starts a debugging session on a Cluster OpenMP* application created by the launcher with the arguments launcher_args. |
-command file |
Default |
Specifies an initialization command file. The default initialization file is .gdbinit. During startup, the debugger searches for this file in the current directory. If it is not there, the debugger searches your home directory. This file is processed after the target process has been loaded or attached. |
-c file -core file |
Default |
Specifies the core dump file |
-dbx |
Default |
Causes the debugger to use the idb_options options set |
-directory dir |
Default |
Searches for source files in dir |
-e file -exec file |
Default |
Specifies the executable file |
-fullname |
Default |
Outputs information used by Emacs*-GDB interface |
-help |
Default |
Print help message and exit |
-interpreter name -ui name |
Default |
Selects a mode interpreter interface |
-n[x] |
Default |
Causes the debugger to skip reading .gdbinit. |
-nowindows |
Default |
Do not use a window interface |
-p[id] pid |
Default |
Specifies the process ID of the process to be debugged. |
-parallel launcher launcher_args |
Default |
Starts a debugging session on a parallel application created by the launcher with arguments launcher_args. |
-parallelattach launcher |
Default |
Attach to an existing MPI-1 job. |
-quiet |
Default |
Do not print copyright message |
-tty device |
Default |
Use device for input/output by the program being debugged |
-version |
Default |
Print version information and exit |
-x file |
Default |
Tells the debugger to process command files passed with -x in addition to .gdbinit. More than one -x option can be used |