Function: gdbmi-bnf-gdb-prompt
gdbmi-bnf-gdb-prompt is a byte-compiled function defined in
gdb-mi.el.gz.
Signature
(gdbmi-bnf-gdb-prompt)
Documentation
Implementation of the following GDB/MI output grammar rule:
gdb-prompt ==>
(gdb) nl
nl ==>
CR | CR-LF
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdbmi-bnf-gdb-prompt ()
"Implementation of the following GDB/MI output grammar rule:
gdb-prompt ==>
`(gdb)' nl
nl ==>
CR | CR-LF"
(let ((prompt "(gdb) \n"))
(when (gdbmi-start-with gud-marker-acc gdbmi-bnf-offset prompt)
(if gdbmi-debug-mode (message "gdbmi-bnf-gdb-prompt: %s" prompt))
(gdb-gdb prompt)
(setq gdbmi-bnf-offset (+ gdbmi-bnf-offset (length prompt)))
;; Returns non-nil to tell gud-gdbmi-marker-filter we've reached
;; the end of a GDB reply message.
t)))