summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 49b29902..dbe06590 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -2287,14 +2287,13 @@ Called by '~/src/dotfiles/bin/emacsclient --spw/update-environment'."
(defvar-local spw/gdbmacs-target-name nil)
(defun spw/gdbmacs-attach (&optional name)
+ (require 'gdb-mi)
(let (pid
(arg (if name (concat "--fg-daemon=" name) "--fg-daemon"))
- (proc (and (boundp 'gud-comint-buffer)
- (get-buffer-process gud-comint-buffer))))
+ (proc (get-buffer-process gud-comint-buffer)))
(when (and proc (string= gdb-inferior-status "signal-received"))
;; Avoid wiping out useful info.
(error "Possibly Emacs just crashed; not attaching for now"))
- (require 'gdb-mi)
(cl-flet ((run-or-continue ()
(gdb-wait-for-pending
(lambda ()