The basic GDB GUI command uses the following input.
gdb
To run GDB in non-windows command-line mode, use the -nw switch, as in the following example’s input.
gdb -nw
When you open GDB, the Command window and the Source window appear instantaneously (Figure 1). Also, a temporary window (Figure 2) displays a permissions notice for GDB.
Figure 1: Command window (1a) and Source window (1b)
Figure 2: GDB GUI permissions notice