* Fix native disassemble on Windows platforms (bug#65455)

* lisp/emacs-lisp/disass.el (disassemble-internal): Improve regexp.
This commit is contained in:
Andrea Corallo 2023-08-27 18:59:40 +02:00
parent 91d2d8439b
commit ea5fd6c96b

View file

@ -94,14 +94,11 @@ redefine OBJECT if it is a symbol."
(call-process "objdump" nil (current-buffer) t "-S" eln) (call-process "objdump" nil (current-buffer) t "-S" eln)
(error "Missing eln file for #<subr %s>" name))) (error "Missing eln file for #<subr %s>" name)))
(goto-char (point-min)) (goto-char (point-min))
(re-search-forward (concat "^.*" (re-search-forward (concat "^.*<_?"
(regexp-quote (regexp-quote
(concat "<" (comp-c-func-name
(when (eq system-type 'darwin) (subr-name obj) "F" t))
"_") ">:"))
(comp-c-func-name
(subr-name obj) "F" t)
">:"))))
(beginning-of-line) (beginning-of-line)
(delete-region (point-min) (point)) (delete-region (point-min) (point))
(when (re-search-forward "^.*<.*>:" nil t 2) (when (re-search-forward "^.*<.*>:" nil t 2)