gud-gud-gdb-command-name

gud-gud-gdb-command-name is a variable defined in `gud.el'.
Its value is
"gdb --fullname"


Documentation:
Default command to run an executable under GDB in text command mode.
The option "--fullname" must be included in this value.

You can customize this variable.