Skip to content

Commit 5b95643

Browse files
committed
Add way to change GDB executable name
1 parent 26db7c6 commit 5b95643

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gdb-mi.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ This can be changed in a debugging session with the command `gdb-watchers-toggle
8989
:type 'boolean
9090
:version "26.1")
9191

92+
(defcustom gdb-executable-name "gdb"
93+
"GDB executable name or path."
94+
:group 'gdb
95+
:type 'string
96+
:version "26.2")
97+
9298
(defcustom gdb-debug nil
9399
"List of debug symbols, which will enable different components.
94100
Possible values are:
@@ -1117,7 +1123,7 @@ HAS-CHILDREN should be t when this node has children."
11171123
(setq gdb--omit-console-output nil)
11181124
(gdb-comint-mode)
11191125
(let ((process-connection-type nil))
1120-
(make-comint-in-buffer "GDB" buffer "gdb" nil "-i=mi"
1126+
(make-comint-in-buffer "GDB" buffer gdb-executable-name nil "-i=mi"
11211127
(if gdb-ignore-gdbinit "-nx" "")))
11221128

11231129
(let ((proc (get-buffer-process buffer)))

0 commit comments

Comments
 (0)