gdb-gud-context-command

gdb-gud-context-command is a compiled Lisp function in `gdb-mi.el'.

(gdb-gud-context-command COMMAND &optional NOALL)

When `gdb-non-stop' is t, add --thread option to COMMAND if
`gdb-gud-control-all-threads' is nil and --all option otherwise.
If NOALL is t, always add --thread option no matter what
`gdb-gud-control-all-threads' value is.

When `gdb-non-stop' is nil, return COMMAND unchanged.