Function: gdb-starting

gdb-starting is a byte-compiled function defined in gdb-mi.el.gz.

Signature

(gdb-starting OUTPUT-FIELD RESULT)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-starting (_output-field _result)
  ;; CLI commands don't emit ^running at the moment so use gdb-running too.
  (setq gdb-inferior-status "running")

  ;; Set `gdb-non-stop' when `gdb-last-command' is a CLI background
  ;; running command e.g. "run &", attach &" or a MI command
  ;; e.g. "-exec-run" or "-exec-attach".
  (if (or (string-match "&\s*$" gdb-last-command)
          (string-match "^-" gdb-last-command))
      (progn (gdb-try-check-target-async-support)
             (setq gud-async-running t))
    (setq gud-async-running nil))

  (gdb-force-mode-line-update
   (propertize gdb-inferior-status 'face 'font-lock-type-face))
  (setq gdb-active-process t)
  (setq gud-running t)
  (gud-hide-current-line-indicator nil))