Function: gdb-get-buffer

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

Signature

(gdb-get-buffer BUFFER-TYPE &optional THREAD)

Documentation

Get a specific GDB buffer.

In that buffer, gdb-buffer-type(var)/gdb-buffer-type(fun) must be equal to BUFFER-TYPE and gdb-thread-number (if provided) must be equal to THREAD.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-get-buffer (buffer-type &optional thread)
  "Get a specific GDB buffer.

In that buffer, `gdb-buffer-type' must be equal to BUFFER-TYPE
and `gdb-thread-number' (if provided) must be equal to THREAD."
  (catch 'found
    (dolist (buffer (buffer-list) nil)
      (with-current-buffer buffer
        (when (and (eq gdb-buffer-type buffer-type)
                   (or (not thread)
                       (equal gdb-thread-number thread)))
          (throw 'found buffer))))))