Subject: Re: argh, spoke too soon
To: None <port-sparc@NetBSD.ORG, mouse@Collatz.McRCIM.McGill.EDU>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: port-sparc
Date: 02/27/1996 19:19:41
> Is there anything useful I could do with the coredump to help anyone
> figure out what's wrong? Does NetBSD's kernel postmortem gdb have any
> way to look at things like non-curproc process's kernel stack?
Hopefully, future versions of gdb will have a nicer interface for this,
but currently you can do:
ps -axl -O paddr -N ... -M ...
and note the the last 6 digits of the proc addr. Prepend `0xf8' (probably)
to these digits, and present them to gdb:
(kgdb) proc 0xf8aabbcc
This will set the process context, and you should be able to see the kernel
stack using `bt'.
-pk