]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix error while disassembling native code on macOS
authorJimmy Yuen Ho Wong <wyuenho@gmail.com>
Tue, 3 Aug 2021 07:14:38 +0000 (08:14 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 3 Aug 2021 08:27:20 +0000 (10:27 +0200)
* lisp/emacs-lisp/disass.el (disassemble-internal): Make sure the
regexp that searches for a symbol takes into account of llvm-objdump's
output format.

lisp/emacs-lisp/disass.el

index 6ac76f1c19de7ea896592f4a0a2c31817818806c..712fa511707db771002849a7de203333540266d6 100644 (file)
@@ -95,6 +95,8 @@ redefine OBJECT if it is a symbol."
               (re-search-forward (concat "^.*"
                                          (regexp-quote
                                           (concat "<"
+                                                  (when (eq system-type 'darwin)
+                                                    "_")
                                                   (comp-c-func-name
                                                    (subr-name obj) "F" t)
                                                   ">:"))))