Function: gdb-get-source-file
gdb-get-source-file is a byte-compiled function defined in
gdb-mi.el.gz.
Signature
(gdb-get-source-file)
Documentation
Find the source file where the program starts and display it with related buffers, if required.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defun gdb-get-source-file ()
"Find the source file where the program starts and display it with related
buffers, if required."
;; This function is called only once on startup.
(goto-char (point-min))
(if (re-search-forward gdb-source-file-regexp nil t)
(setq gdb-main-file (gdb-mi--c-string-from-string (match-string 1))))
(if gdb-many-windows
(gdb-setup-windows)
(gdb-get-buffer-create 'gdb-breakpoints-buffer)
(and gdb-show-main
gdb-main-file
(display-buffer (gud-find-file gdb-main-file))))
(gdb-force-mode-line-update
(propertize "ready" 'face 'font-lock-variable-name-face)))