From a7aea77fa14690450893edc29b8774fc0fd4509d Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Thu, 6 Oct 2005 13:46:22 +0000
Subject: [PATCH] Add a note about gdb 4.18 is the last debugger known to work
 with cmucl, and that gcc 3.3.3 and later produces executables that gdb 4.18
 doesn't understand.

---
 lisp/Config.sun4_solaris_gcc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lisp/Config.sun4_solaris_gcc b/lisp/Config.sun4_solaris_gcc
index 368851c7b..1744964f1 100644
--- a/lisp/Config.sun4_solaris_gcc
+++ b/lisp/Config.sun4_solaris_gcc
@@ -40,6 +40,15 @@ endif
 
 CPPFLAGS = -I. -I$(PATH1) -I/usr/openwin/include -I/usr/include/X11 -DSOLARIS -DSOLARIS25 -DSVR4 $(CC_V8PLUS) $(LINKAGE) $(GENCGC)
 
+# Note: If you want to be able to run gdb with cmucl, the only version
+# of gdb that still works for me (rtoy) on Solaris is 4.18.  Versions
+# 5.x and later (including 6.3) are incapable of passing signals
+# (SIGILL and SIGSEGV) to lisp properly.
+#
+# But, gcc 3.3.3 and later appear to produce executables that gdb 4.18
+# can't handle.  So, we should probably stick with gcc 3.3.2.  Adjust
+# the CC variable appropriately, if necessary.
+
 CC = gcc -O -Wall
 CPP = gcc -E
 CFLAGS = -g $(AS_V8PLUS)
-- 
GitLab