[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

19187: Re: [MUD-Dev] Re: TECH: Distributed Muds

[Full Header] [Plain Text]
From: Neil Brown <neil_1_brown@yahoo.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 4 May 2001 05:38:53 -0700 (PDT)
References: [1]
Organization: Kanga.Nu
> From: Bruce <bruce@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?  

  http://www.whatsis.com/pstack/

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.

-o-
Neil
_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev