[MUD-Dev] Re: TECH: Distributed Muds

Neil Brown neil_1_brown at yahoo.com
Fri May 4 05:38:53 New Zealand Standard Time 2001

> From: Bruce <bruce at puremagic.com>
> On a related note, I haven't seen a nice way of determining the
> stack trace for a given thread.  I'd love to know how to do this.  I
> can walk a stack upwards given a jmp_buf, but what I really want to
> do here is be able to determine exactly what all of the threads in a
> running system are doing at any point in time.  This would obviously
> be platform-specific code, which is fine with me. :) Anyone done
> anything like this?

Is this what you're looking for?  


I've seen this version for Linux and I've used the one for Solaris
which works quite nicely when combined with a signal handler for
SIGSEGV and SIGBUS - print out the stack before you fall on your sword
- handy.

MUD-Dev mailing list
MUD-Dev at kanga.nu

More information about the MUD-Dev mailing list