]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix native disassemble on Windows platforms (bug#65455)
authorAndrea Corallo <acorallo@gnu.org>
Sun, 27 Aug 2023 16:59:40 +0000 (18:59 +0200)
committerAndrea Corallo <acorallo@gnu.org>
Sun, 27 Aug 2023 17:03:48 +0000 (19:03 +0200)
* lisp/emacs-lisp/disass.el (disassemble-internal): Improve regexp.

lisp/emacs-lisp/disass.el

index 859a494a6979ecdae37c22b924eb96801861f207..f9f7448d81c28f19e6146d79074ea2a2ab49c014 100644 (file)
@@ -94,14 +94,11 @@ redefine OBJECT if it is a symbol."
                     (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 "^.*"
+              (re-search-forward (concat "^.*<_?"
                                          (regexp-quote
-                                          (concat "<"
-                                                  (when (eq system-type 'darwin)
-                                                    "_")
-                                                  (comp-c-func-name
-                                                   (subr-name obj) "F" t)
-                                                  ">:"))))
+                                          (comp-c-func-name
+                                           (subr-name obj) "F" t))
+                                         ">:"))
               (beginning-of-line)
               (delete-region (point-min) (point))
               (when (re-search-forward "^.*<.*>:" nil t 2)