File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2685,13 +2685,13 @@ If ARG is `dprintf' create a dprintf breakpoint instead."
2685
2685
gdb--session))
2686
2686
2687
2687
;;;### 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.
2690
2690
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))))
2695
2695
(setq gdb--previous-executable debuggee-path)
2696
2696
(setf (gdb--session-debuggee-path session) debuggee-path)
2697
2697
You can’t perform that action at this time.
0 commit comments