Function: gdb-mi--read-buffer

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

Signature

(gdb-mi--read-buffer FIX-KEY)

Documentation

Parse the current buffer as a list of result productions.

If FIX-KEY is a non-nil symbol, convert all FIX-KEY=VALUE results into VALUE. This is used to get rid of useless keys in lists in MI messages; eg, [key=.., key=..]. -stack-list-frames and -break-info are examples of MI commands which issue such responses.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-mi--read-buffer (fix-key)
  "Parse the current buffer as a list of result productions.
If FIX-KEY is a non-nil symbol, convert all FIX-KEY=VALUE results into VALUE.
This is used to get rid of useless keys in lists in MI messages;
eg, [key=.., key=..].  -stack-list-frames and -break-info are
examples of MI commands which issue such responses."
  (goto-char (point-min))
  (let ((results (gdb-mi--parse-results)))
    (let ((remote (file-remote-p default-directory)))
      (when remote
        (setq results (gdb-mi--extend-fullname remote results))))
    (when fix-key
      (setq results (gdb-mi--fix-key fix-key results)))
    results))