[Midnightbsd-cvs] src [11965] trunk/sys: add debugging options for current

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jul 28 15:54:43 EDT 2018


Revision: 11965
          http://svnweb.midnightbsd.org/src/?rev=11965
Author:   laffer1
Date:     2018-07-28 15:54:43 -0400 (Sat, 28 Jul 2018)
Log Message:
-----------
add debugging options for current

Modified Paths:
--------------
    trunk/sys/amd64/conf/GENERIC
    trunk/sys/i386/conf/GENERIC

Modified: trunk/sys/amd64/conf/GENERIC
===================================================================
--- trunk/sys/amd64/conf/GENERIC	2018-07-28 19:49:47 UTC (rev 11964)
+++ trunk/sys/amd64/conf/GENERIC	2018-07-28 19:54:43 UTC (rev 11965)
@@ -70,7 +70,16 @@
 
 # Debugging support.  Always need this:
 options 	KDB			# Enable kernel debugger support.
-options 	KDB_TRACE		# Print a stack trace for a panic.
+#options 	KDB_TRACE		# Print a stack trace for a panic.
+# For full debugger support use this instead:
+options 	DDB			# Support DDB.
+options 	GDB			# Support remote GDB.
+options 	DEADLKRES		# Enable the deadlock resolver
+options 	INVARIANTS		# Enable calls of extra sanity checking
+options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
+options 	WITNESS			# Enable checks to detect deadlocks and cycles
+options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
+options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
 
 # Make an SMP-capable kernel by default
 options 	SMP			# Symmetric MultiProcessor Kernel

Modified: trunk/sys/i386/conf/GENERIC
===================================================================
--- trunk/sys/i386/conf/GENERIC	2018-07-28 19:49:47 UTC (rev 11964)
+++ trunk/sys/i386/conf/GENERIC	2018-07-28 19:54:43 UTC (rev 11965)
@@ -68,7 +68,16 @@
 
 # Debugging support.  Always need this:
 options 	KDB			# Enable kernel debugger support.
-options 	KDB_TRACE		# Print a stack trace for a panic.
+#options 	KDB_TRACE		# Print a stack trace for a panic.
+# For full debugger support use this instead:
+options 	DDB			# Support DDB.
+options 	GDB			# Support remote GDB.
+options 	DEADLKRES		# Enable the deadlock resolver
+options 	INVARIANTS		# Enable calls of extra sanity checking
+options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
+options 	WITNESS			# Enable checks to detect deadlocks and cycles
+options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
+options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
 
 # To make an SMP kernel, the next two lines are needed
 options 	SMP			# Symmetric MultiProcessor Kernel



More information about the Midnightbsd-cvs mailing list