From e4094a8c360590f42ea16d49afcb8b7db7e49f67 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Sat, 16 Aug 2008 01:43:12 +0000
Subject: [PATCH] Enable lookup of foreign function names using dladdr instead
 of just returning the fixed string on x86/darwin.

---
 code/debug-int.lisp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/code/debug-int.lisp b/code/debug-int.lisp
index ae42d2667..b143cebfc 100644
--- a/code/debug-int.lisp
+++ b/code/debug-int.lisp
@@ -5,7 +5,7 @@
 ;;; Carnegie Mellon University, and has been placed in the public domain.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/debug-int.lisp,v 1.133 2008/01/03 11:41:51 cshapiro Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/debug-int.lisp,v 1.134 2008/08/16 01:43:12 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -1179,7 +1179,7 @@
 	      frame)))))
 
 
-#+(or sparc (and (or x86 amd64) linux))
+#+(or sparc (and x86 darwin) (and (or x86 amd64) linux))
 (defun find-foreign-function-name (address)
   "Return a string describing the foreign function near ADDRESS"
   (let ((addr (sys:sap-int address)))
@@ -1202,7 +1202,7 @@
 		       (alien:slot info 'filename)
 		       )))))))
 
-#-(or sparc (and (or x86 amd64) linux))
+#-(or sparc (and x86 darwin) (and (or x86 amd64) linux))
 (defun find-foreign-function-name (ra)
   (declare (ignore ra))
   "Foreign function call land")
-- 
GitLab