Function: gdb-get-source-file-list
gdb-get-source-file-list is a byte-compiled function defined in
gdb-mi.el.gz.
Signature
(gdb-get-source-file-list)
Documentation
Create list of source files for current GDB session.
If buffers already exist for any of these files, gud-minor-mode
is set in them.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-get-source-file-list ()
"Create list of source files for current GDB session.
If buffers already exist for any of these files, `gud-minor-mode'
is set in them."
(goto-char (point-min))
(while (re-search-forward gdb-source-file-regexp nil t)
(push (gdb-mi--c-string-from-string (match-string 1))
gdb-source-file-list))
(dolist (buffer (buffer-list))
(with-current-buffer buffer
(when (member buffer-file-name gdb-source-file-list)
(gdb-init-buffer)))))