Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch For DDB, generate APCS stack frame so that db_stack...



details:   https://anonhg.NetBSD.org/src/rev/55a36814aab4
branches:  trunk
changeset: 1025171:55a36814aab4
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Nov 08 23:35:43 2021 +0000

description:
For DDB, generate APCS stack frame so that db_stack_trace_print() works.

XXX
Copy-paste from arm/conf/Makefile.arm.
Convert to ${MACHINE}/conf/Makefile.${MACHINE}.inc.

diffstat:

 sys/arch/acorn32/conf/Makefile.acorn32 |  7 ++++++-
 sys/arch/hpcarm/conf/Makefile.hpcarm   |  7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 1af9002a4c0d -r 55a36814aab4 sys/arch/acorn32/conf/Makefile.acorn32
--- a/sys/arch/acorn32/conf/Makefile.acorn32    Mon Nov 08 17:58:27 2021 +0000
+++ b/sys/arch/acorn32/conf/Makefile.acorn32    Mon Nov 08 23:35:43 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.acorn32,v 1.24 2018/09/22 12:24:01 rin Exp $
+#      $NetBSD: Makefile.acorn32,v 1.25 2021/11/08 23:35:43 rin Exp $
 
 # Makefile for NetBSD
 #
@@ -36,6 +36,11 @@
 CWARNFLAGS+=   -Wcomment
 AFLAGS+=       -x assembler-with-cpp
 
+OPT_DDB=       %DDB%
+.if !empty(OPT_DDB) && ${HAVE_GCC:U0} > 0
+CFLAGS+=       -mapcs-frame
+.endif
+
 ##
 ## (3) libkern and compat
 ##
diff -r 1af9002a4c0d -r 55a36814aab4 sys/arch/hpcarm/conf/Makefile.hpcarm
--- a/sys/arch/hpcarm/conf/Makefile.hpcarm      Mon Nov 08 17:58:27 2021 +0000
+++ b/sys/arch/hpcarm/conf/Makefile.hpcarm      Mon Nov 08 23:35:43 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.hpcarm,v 1.19 2018/09/22 12:24:02 rin Exp $
+#      $NetBSD: Makefile.hpcarm,v 1.20 2021/11/08 23:35:43 rin Exp $
 
 # Makefile for NetBSD
 #
@@ -36,6 +36,11 @@
 CWARNFLAGS+=   -Wcomment
 AFLAGS+=       -x assembler-with-cpp
 
+OPT_DDB=       %DDB%
+.if !empty(OPT_DDB) && ${HAVE_GCC:U0} > 0
+CFLAGS+=       -mapcs-frame
+.endif
+
 ##
 ## (3) libkern and compat
 ##



Home | Main Index | Thread Index | Old Index