Function: gdb-get-prompt

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

Signature

(gdb-get-prompt)

Documentation

Find prompt for GDB session.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-get-prompt ()
  "Find prompt for GDB session."
  (goto-char (point-min))
  (setq gdb-prompt-name nil)
  (re-search-forward gdb-prompt-name-regexp nil t)
  (setq gdb-prompt-name (gdb-mi--c-string-from-string (match-string 1)))
  ;; Insert first prompt.
  (setq gdb-filter-output (concat gdb-filter-output gdb-prompt-name)))