1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-09 01:05:39 -08:00

; * lisp/progmodes/gdb-mi.el (gdb-load-history): Add doc string.

This commit is contained in:
Eli Zaretskii 2023-12-21 13:57:00 +02:00
parent 63a38fd292
commit ff3965795f

View file

@ -818,6 +818,9 @@ NOARG must be t when this macro is used outside `gud-def'."
(defvar gdb-control-level 0)
(defun gdb-load-history ()
"Load GDB history from a history file.
The name of the history file is given by environment variable GDBHISTFILE,
falling back to \".gdb_history\" and \".gdbinit\"."
(when (ring-empty-p comint-input-ring) ; cf shell-mode
(let ((hfile (expand-file-name (or (getenv "GDBHISTFILE")
(if (eq system-type 'ms-dos)