GDB is invoked as follows:
corefile-or-PID]] gdb [
gdbtui command is equivalent to
gdb --tui; it invokes GDB with the Text User Interface (TUI). The TUI is described in the later section "The GDB Text User Interface.”
GDB has both traditional short options and GNU-style long options. Long options may start with either one or two hyphens. The command-line options are as follows.
Pass on arguments after executable to the program being debugged.
Enable/disable the asynchronous version of the command-line interface.
Set the serial port baud rate used for remote debugging.
Process options and then exit.
Change current directory to dir.
Analyze the core dump file.
Search for source files in dir.
Use file as the executable.
Output information used by the Emacs-GDB interface.
Print a usage and option summary and then exit.
Select a specific interpreter/user interface. The command-line interface is the default, although there are other interfaces for use by frontend programs.
Use mapped symbol files if supported on this system.
Do not read the .gdbinit file.
Force the use of the command-line interface, even if a windows interface is available.
Attach to running process pidnum ...