Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb Sort variable declarations. Add short comments whil...



details:   https://anonhg.NetBSD.org/src/rev/0b27aa9ec15d
branches:  trunk
changeset: 988276:0b27aa9ec15d
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Oct 06 17:04:49 2021 +0000

description:
Sort variable declarations.  Add short comments while here.

The list was neither sorted nor grouped logically when db_dumpstack
and db_panicstackframes were added to modify the panic behavior.

diffstat:

 sys/ddb/ddbvar.h |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r 43c2cfe91a86 -r 0b27aa9ec15d sys/ddb/ddbvar.h
--- a/sys/ddb/ddbvar.h  Wed Oct 06 12:18:20 2021 +0000
+++ b/sys/ddb/ddbvar.h  Wed Oct 06 17:04:49 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ddbvar.h,v 1.13 2018/02/17 00:41:09 sevan Exp $        */
+/*     $NetBSD: ddbvar.h,v 1.14 2021/10/06 17:04:49 uwe Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -35,12 +35,11 @@
 /*
  * Externally-visible  debugger state and entrypoints
  */
-
-extern int db_onpanic;
-extern int db_fromconsole;
-extern int db_panicstackframes;
-extern int db_tee_msgbuf;
-extern int db_dumpstack;
+extern int db_dumpstack;               /* do automatic bt on panic */
+extern int db_fromconsole;             /* can be entered from the console */
+extern int db_onpanic;                 /* enter ddb on panic */
+extern int db_panicstackframes;        /* limit db_dumpstack */
+extern int db_tee_msgbuf;              /* add ddb output to dmesg */
 
 extern void db_panic(void);
 



Home | Main Index | Thread Index | Old Index