svn commit: r337623 - in head: etc sbin/ddb

Brad Davis brd at FreeBSD.org
Sat Aug 11 13:25:41 UTC 2018


Author: brd
Date: Sat Aug 11 13:25:39 2018
New Revision: 337623
URL: https://svnweb.freebsd.org/changeset/base/337623

Log:
  Move ddb.conf to sbin/ddb/ and switch to CONFS.
  
  This helps pkgbase as this config file will now be tagged as a config file.
  
  Approved by:	allanjude (mentor)
  Differential Revision:	https://reviews.freebsd.org/D16675

Added:
  head/sbin/ddb/ddb.conf
     - copied unchanged from r337622, head/etc/ddb.conf
Deleted:
  head/etc/ddb.conf
Modified:
  head/etc/Makefile
  head/sbin/ddb/Makefile

Modified: head/etc/Makefile
==============================================================================
--- head/etc/Makefile	Sat Aug 11 13:23:09 2018	(r337622)
+++ head/etc/Makefile	Sat Aug 11 13:25:39 2018	(r337623)
@@ -15,7 +15,6 @@ SUBDIR+=sendmail
 BIN1=	crontab \
 	devd.conf \
 	devfs.conf \
-	ddb.conf \
 	dhclient.conf \
 	disktab \
 	fbtab \

Modified: head/sbin/ddb/Makefile
==============================================================================
--- head/sbin/ddb/Makefile	Sat Aug 11 13:23:09 2018	(r337622)
+++ head/sbin/ddb/Makefile	Sat Aug 11 13:25:39 2018	(r337623)
@@ -1,5 +1,6 @@
 # $FreeBSD$
 
+CONFS=	ddb.conf
 PACKAGE=runtime
 PROG=	ddb
 SRCS=	ddb.c ddb_capture.c ddb_script.c

Copied: head/sbin/ddb/ddb.conf (from r337622, head/etc/ddb.conf)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sbin/ddb/ddb.conf	Sat Aug 11 13:25:39 2018	(r337623, copy of r337622, head/etc/ddb.conf)
@@ -0,0 +1,15 @@
+# $FreeBSD$
+#
+#  This file is read when going to multi-user and its contents piped thru
+#  ``ddb'' to define debugging scripts.
+#
+# see ``man 4 ddb'' and ``man 8 ddb'' for details.
+#
+
+script lockinfo=show locks; show alllocks; show lockedvnods
+
+# kdb.enter.panic	panic(9) was called.
+script kdb.enter.panic=textdump set; capture on; run lockinfo; show pcpu; bt; ps; alltrace; capture off; call doadump; reset
+
+# kdb.enter.witness	witness(4) detected a locking error.
+script kdb.enter.witness=run lockinfo


More information about the svn-src-head mailing list