mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
Protect against errors in gdb-mi.el handlers
* lisp/progmodes/gdb-mi.el (gdb-handle-reply): Handle errors in 'handler-function' so the cleanup code after it runs safely. (Bug#39178)
This commit is contained in:
parent
baceb8e84d
commit
2b1e18ae85
@ -324,7 +324,10 @@ in `gdb-handler-list' and clears all pending handlers invalidated
|
||||
by the reception of this reply."
|
||||
(let ((handler-function (gdb-get-handler-function token-number)))
|
||||
(when handler-function
|
||||
(funcall handler-function)
|
||||
(condition-case err
|
||||
;; protect against errors in handler-function
|
||||
(funcall handler-function)
|
||||
(error (message (error-message-string err))))
|
||||
(gdb-delete-handler token-number))))
|
||||
|
||||
(defun gdb-remove-all-pending-triggers ()
|
||||
|
Loading…
Reference in New Issue
Block a user