mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix gdb-mi startup when asking user about debuginfod
* lisp/progmodes/gdb-mi.el (gdb-init-1): Delay processing of GDB responses while waiting for the user to answer the question about enabling debuginfod. (Bug#79403)
This commit is contained in:
parent
28fecf40ef
commit
0dd6e5f642
1 changed files with 5 additions and 1 deletions
|
|
@ -1108,7 +1108,11 @@ detailed description of this mode.
|
|||
;; trigger questions about debuginfod queries.
|
||||
(if (eq gdb-debuginfod-enable 'ask)
|
||||
(setq gdb-debuginfod-enable
|
||||
(y-or-n-p "Enable querying debuginfod servers for this session?")))
|
||||
;; Temporarily defer processing of GDB responses, to avoid
|
||||
;; confusing us, until the user responds to the query.
|
||||
(let ((gud-filter-defer-flag t))
|
||||
(y-or-n-p
|
||||
"Enable querying debuginfod servers for this session?"))))
|
||||
(gdb-input (format "-gdb-set debuginfod enabled %s"
|
||||
(if gdb-debuginfod-enable "on" "off"))
|
||||
'gdb-debuginfod-message)
|
||||
|
|
|
|||
Loading…
Reference in a new issue