Module Name: src Committed By: christos Date: Thu Dec 28 17:51:49 UTC 2017
Modified Files: src/share/man/man4: ddb.4 options.4 src/share/man/man7: sysctl.7 Log Message: document ddb.panicstackframes To generate a diff of this commit: cvs rdiff -u -r1.167 -r1.168 src/share/man/man4/ddb.4 cvs rdiff -u -r1.475 -r1.476 src/share/man/man4/options.4 cvs rdiff -u -r1.117 -r1.118 src/share/man/man7/sysctl.7 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man4/ddb.4 diff -u src/share/man/man4/ddb.4:1.167 src/share/man/man4/ddb.4:1.168 --- src/share/man/man4/ddb.4:1.167 Mon Jul 3 17:30:58 2017 +++ src/share/man/man4/ddb.4 Thu Dec 28 12:51:49 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ddb.4,v 1.167 2017/07/03 21:30:58 wiz Exp $ +.\" $NetBSD: ddb.4,v 1.168 2017/12/28 17:51:49 christos Exp $ .\" .\" Copyright (c) 1997 - 2009 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -56,7 +56,7 @@ .\" any improvements or extensions that they make and grant Carnegie Mellon .\" the rights to redistribute these changes. .\" -.Dd January 12, 2017 +.Dd December 28, 2017 .Dt DDB 4 .Os .Sh NAME @@ -1292,6 +1292,13 @@ This option is more generic than the /l selected commands as discussed above to log the output. Mixing both /l and this setting can give double loggings. +.It Va panicstackframes +Number of stack frames to display on panic. +Useful to avoid scrolling way the interesting frames on a glass tty. +Default value is +.Dv 65535 +(all frames), useful value around +.Dv 10 . .\" .It Va work Ns Sy xx .\" Temporary work variable. .\" .Sq Sy xx Index: src/share/man/man4/options.4 diff -u src/share/man/man4/options.4:1.475 src/share/man/man4/options.4:1.476 --- src/share/man/man4/options.4:1.475 Thu Sep 14 04:52:41 2017 +++ src/share/man/man4/options.4 Thu Dec 28 12:51:49 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: options.4,v 1.475 2017/09/14 08:52:41 wiz Exp $ +.\" $NetBSD: options.4,v 1.476 2017/12/28 17:51:49 christos Exp $ .\" .\" Copyright (c) 1996 .\" Perry E. Metzger. All rights reserved. @@ -30,7 +30,7 @@ .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" -.Dd September 13, 2017 +.Dd December 28, 2017 .Dt OPTIONS 4 .Os .Sh NAME @@ -586,6 +586,13 @@ This is currently only supported by the This option adds more verbose descriptions to the .Em help command. +.It Cd options DDB_PANICSTACKFRAMES=integer +Number of stack frames to display on panic. +Useful to avoid scrolling way the interesting frames on a glass tty. +Default value is +.Dv 65535 +(all frames), useful value around +.Dv 10 . .It Cd options KGDB Compiles in a remote kernel debugger stub for diagnosing kernel problems using the Index: src/share/man/man7/sysctl.7 diff -u src/share/man/man7/sysctl.7:1.117 src/share/man/man7/sysctl.7:1.118 --- src/share/man/man7/sysctl.7:1.117 Sun Jul 30 12:07:06 2017 +++ src/share/man/man7/sysctl.7 Thu Dec 28 12:51:49 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: sysctl.7,v 1.117 2017/07/30 16:07:06 maxv Exp $ +.\" $NetBSD: sysctl.7,v 1.118 2017/12/28 17:51:49 christos Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95 .\" -.Dd July 30, 2017 +.Dd December 28, 2017 .Dt SYSCTL 7 .Os .Sh NAME @@ -2465,6 +2465,7 @@ privilege may change the value. .It ddb.fromconsole integer yes .It ddb.tee_msgbuf integer yes .It ddb.commandonenter string yes +.It ddb.panicstackframes integer yes .El .Bl -tag -width "123456" .It Li ddb.radix ( Dv DDBCTL_RADIX ) @@ -2492,9 +2493,13 @@ If not zero, DDB will output also to the .It Li ddb.commandonenter If not empty, a command to be executed on each enter to the .Tn DDB . -.\" -.\" XXX: (a) ddb.commandonenter is missing in ddb(4); -.\" (b) No DDBCTL definitions for tee_msgbuf and commandonenter. +.It Li ddb.panicstackframes +Number of stack frames to display on panic. +Useful to avoid scrolling way the interesting frames on a glass tty. +Default value is +.Dv 65535 +(all frames), useful value around +.Dv 10 . .El .Pp Some of these