Skip to content

Commit bdb2179

Browse files
committed
Make gdb-executable callable noninteractively
1 parent 264cefb commit bdb2179

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gdb-mi.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,13 +2685,13 @@ If ARG is `dprintf' create a dprintf breakpoint instead."
26852685
gdb--session))
26862686

26872687
;;;###autoload
2688-
(defun gdb-executable ()
2689-
"Start debugging an executable in the current session.
2688+
(defun gdb-executable (debuggee-path)
2689+
"Start debugging an executable at DEBUGGEE-PATH in the current session.
26902690
If no session is available, one is automatically created."
2691-
(interactive)
2692-
(let ((debuggee-path (expand-file-name (read-file-name "Select executable to debug: " nil
2693-
gdb--previous-executable t nil 'file-executable-p)))
2694-
(session (or (gdb--infer-session) (gdb-create-session))))
2691+
(interactive
2692+
(list (expand-file-name (read-file-name "Select executable to debug: " nil
2693+
gdb--previous-executable t nil 'file-executable-p))))
2694+
(let ((session (or (gdb--infer-session) (gdb-create-session))))
26952695
(setq gdb--previous-executable debuggee-path)
26962696
(setf (gdb--session-debuggee-path session) debuggee-path)
26972697

0 commit comments

Comments
 (0)