1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

* Handle missing eln file when trying to disassble (bug#65455)

* lisp/emacs-lisp/disass.el (disassemble-internal): Handle missing
eln file.
This commit is contained in:
Andrea Corallo 2023-08-27 16:51:16 +02:00
parent e7ac50a153
commit 91d2d8439b

View File

@ -89,8 +89,10 @@ redefine OBJECT if it is a symbol."
(subr-native-elisp-p obj))
(progn
(require 'comp)
(call-process "objdump" nil (current-buffer) t "-S"
(native-comp-unit-file (subr-native-comp-unit obj)))
(let ((eln (native-comp-unit-file (subr-native-comp-unit obj))))
(if (file-exists-p eln)
(call-process "objdump" nil (current-buffer) t "-S" eln)
(error "Missing eln file for #<subr %s>" name)))
(goto-char (point-min))
(re-search-forward (concat "^.*"
(regexp-quote