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

Re: Dump of trap state



Ravi Chamarty wrote:

>  If i compile the kernel with debugging support, should I run GDB and
> symtrace on Linux to help me generate call-trace? Also, should I run the
> symtrace on the executable or on the actual multiboot kernel?

First, look at the remote debugging with GDB chapter of the
OSKit documentation:
	http://www.cs.utah.edu/flux/oskit/html/oskit-wwwch15.html#x24-167400015.17
Basically, you can use GDB to attach (via a serial connection) to
your remote kernel and debug it as usual with GDB.

As for symtrace, it is only good for post-mortems.  You should provide
the executable and not the multiboot image to symtrace.  The input to
symtrace is the output of the call stacks (the list of hex numbers)
for each thread.

-Pat

----- ----- ---- ---  ---  --   -    -      -         -               -
Pat Tullmann                                       tullmann@cs.utah.edu
       It said "Windows 95 or better" so FreeBSD should run it.

References: