summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/conf
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-10-15 19:23:32 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-10-15 19:23:32 +0000
commit7fe7df8c1ff94b29f2b1dc9510582270a6920a1c (patch)
tree54862ead52523ff4dd23dd90b29cd786628c8260 /sys/arch/sparc64/conf
parent36467888cc52d0957b3258039a2812b7824c902b (diff)
Rewrite the awk script that generates the data for option DDB_STRUCT:
- switch to perl for better data structures and (thus) speed - fix a couple glitches in the interpretation of the stabs output - compress the strings by putting them in one big array and overlaying suffixes - all sizes and offsets are <64k, so use u_short for them This results in ~60% reduction in the resulting text size and it now takes less than a second to create on fast platforms. ok miod@
Diffstat (limited to 'sys/arch/sparc64/conf')
-rw-r--r--sys/arch/sparc64/conf/Makefile.sparc646
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64
index ba84672da9f..603b9743013 100644
--- a/sys/arch/sparc64/conf/Makefile.sparc64
+++ b/sys/arch/sparc64/conf/Makefile.sparc64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc64,v 1.66 2013/08/16 19:52:08 kettenis Exp $
+# $OpenBSD: Makefile.sparc64,v 1.67 2013/10/15 19:23:31 guenther Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -132,9 +132,9 @@ depend:
tags:
@echo "see $S/kern/Makefile for tags"
-db_structinfo.h: $S/ddb/db_structinfo.c $S/ddb/parse_structinfo.awk
+db_structinfo.h: $S/ddb/db_structinfo.c $S/ddb/parse_structinfo.pl
${CC} ${CFLAGS} ${CPPFLAGS} -MT $@ -gstabs -c $S/ddb/db_structinfo.c
- objdump -g db_structinfo.o | awk -f $S/ddb/parse_structinfo.awk > $@
+ objdump -g db_structinfo.o | perl $S/ddb/parse_structinfo.pl > $@
rm -f db_structinfo.o
locore.o: ${_machdir}/${_mach}/locore.s assym.h