From b44abacc8cfee02de45773424dd7b18d8794a6c3 Mon Sep 17 00:00:00 2001 From: Jimmy Yuen Ho Wong Date: Tue, 3 Aug 2021 08:14:38 +0100 Subject: [PATCH] * Fix error while disassembling native code on macOS * 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/emacs-lisp/disass.el b/lisp/emacs-lisp/disass.el index 6ac76f1c19d..712fa511707 100644 --- a/lisp/emacs-lisp/disass.el +++ b/lisp/emacs-lisp/disass.el @@ -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) ">:")))) -- 2.39.2