backtrace question

ajones at cobalt.com ajones at cobalt.com
Fri Nov 10 10:12:55 PST 2000


I'm frustrated by the backtrace function in kdb for the 2.2.13 kernel.
The module I'm working with only seems to compile with -O2.  However,
kdb's bt seems to be confused by the call stacks used with -O2 and
it gives up early.  Has there been any work to improve the backtrace
function since the 2.2.13 release?

With the Solaris kdb I used to hunt for stack pointers in the stack
bejond a trap were kdb gives up.  It might be useful to automate this
function; have bt <addr> scan a couple of hundred bytes to look for
signs of a stack frame; pointers near their address next (into the
stack) next to pointers near known symbols (return pointers).

Alan Jones



More information about the kdb mailing list