Hi,
I recently ran into problem where I needed a stacktrace to figure out
why EHCI - USB path (usb_allocmem) is not working and I couldn't get
access to ddb console because the keyboard was unusable.
I finally found out I could do the print like below and it gave me a
usable stacktrace.
That 'cold' condition doesn't work for some reason (can BIOS/OS give
indication it is cold boot?). Anyway it is much better to give a
stacktrace to user so that they can give it back to developers.
If nobody has objection can somebody please commit?
Thanks
Index: db_trap.c
===================================================================
RCS file: /cvs/src/sys/ddb/db_trap.c,v
retrieving revision 1.14
diff db_trap.c
76,83c76
< /*
< * Just in case we do not have any usable console driver,
< * give the user a traceback.
< */
< if (cold) {
< db_stack_trace_print(db_dot, 0, 10 /* arbitrary */, "",
< db_printf);
< }
---