Variable: gdb-control-commands-regexp

gdb-control-commands-regexp is a variable defined in gdb-mi.el.gz.

Value

"^\\(?:\\(?:actions\\|comm\\(?:a\\(?:n\\(?:ds?\\)?\\)?\\)?\\|d\\(?:ef\\(?:i\\(?:ne?\\)?\\)?\\|oc\\(?:u\\(?:m\\(?:e\\(?:nt?\\)?\\)?\\)?\\)?\\)\\|expl\\(?:o\\(?:re?\\)?\\)?\\|if\\|stepp\\(?:i\\(?:ng?\\)?\\)?\\|w\\(?:hile\\(?:-stepping\\)?\\|s\\)\\)\\|\\(\\(?:g\\(?:r\\|uile\\(?:-repl\\)?\\)\\|p\\(?:i\\|ython\\(?:-interactive\\)?\\)\\)\\)\\)\\(?:[[:blank:]]+\\(.*\\)\\)?$"

Documentation

Regexp matching GDB commands that enter a recursive reading loop.

As long as GDB is in the recursive reading loop, it does not expect commands to be prefixed by "-interpreter-exec console".

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defvar gdb-control-commands-regexp
  (rx bol
      (or
       (or "comm" "comma" "comman" "command" "commands"
           "if" "while"
           "def" "defi" "defin" "define"
           "doc" "docu" "docum" "docume" "documen" "document"
           "while-stepping"
           "stepp" "steppi" "steppin" "stepping"
           "ws" "actions"
           "expl" "explo" "explor" "explore")
       (group         ; group 1: Python and Guile commands
        (or "python" "python-interactive" "pi" "guile" "guile-repl" "gr")))
      (? (+ blank)
         (group       ; group 2: command arguments
          (* nonl)))
      eol)
  "Regexp matching GDB commands that enter a recursive reading loop.
As long as GDB is in the recursive reading loop, it does not expect
commands to be prefixed by \"-interpreter-exec console\".")