small change in db_trap.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Amit Kulkarni
Date: Thursday, November 4, 2010 - 9:53 am

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);
<               }
---
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
small change in db_trap.c, Amit Kulkarni, (Thu Nov 4, 9:53 am)
Re: small change in db_trap.c, Miod Vallat, (Thu Nov 11, 2:33 am)