Subject: Getting into the debugger
To: None <tech-kern@netbsd.org>
From: Dr. Bill Studenmund <wrstuden@loki.stanford.edu>
List: tech-kern
Date: 01/15/1999 13:25:26
I'm starting to try to debug the fs locking problems. One of the things
I'd love to have is a stack trace in a static string (so I can have a
stack trace both of the code which ran into a lock & panic'd and also the
code which generated the lock).

To that end, I've added snprintf, and hooks in db_trace to support tracing
to a buffer.

Now all I need is a way to get into the debugger to start the stack trace.
Does anyone know how to do this? Basically I need to be able to latch onto
the current stack frame so trace can go look at it, and to set up whatever
else db_trace_cmd will want.

Is there a db expert around?

Take care,

Bill