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

kernel/2426: be more useful in ddb



>Number:         2426
>Category:       kernel
>Synopsis:       ddb only tells you what you have to record once.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 23 11:40:01 MST 2002
>Last-Modified:
>Originator:     Sam
>Organization:
-- 
    Those who do not read Dilbert are doomed to repeat it
     
>Release:        -current
>Environment:
	
	System      : OpenBSD 3.0
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:
On a panic, you only get what to report mentioned on entering
ddb. If you lose this (resizing a minicom window in my case)
there is no (obvious) way to find out what to send.


>How-To-Repeat:
cause a kernel panic

>Fix:
I'm not sure if the capitalisation is required, but you
may want better wording anyway. 
Either that, or add memory capacity to myself.

Index: sys/ddb/db_command.c
===================================================================
RCS file: /cvs/src/sys/ddb/db_command.c,v
retrieving revision 1.26
diff -u -r1.26 db_command.c
--- sys/ddb/db_command.c	2002/01/28 19:31:56	1.26
+++ sys/ddb/db_command.c	2002/02/23 18:30:52
@@ -141,6 +141,10 @@
 	    db_printf("%-12s", cmd->name);
 	    db_end_line(12);
 	}
+	db_printf("\nRUN AT LEAST 'trace' AND 'ps' AND INCLUDE "
+		    "OUTPUT WHEN REPORTING A PANIC!\n");
+	db_printf("DO NOT EVEN BOTHER REPORTING IT WITHOUT "
+		    "INCLUDING THAT INFORMATION!\n");
 }
 
 void

>Audit-Trail:
>Unformatted: