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

nu.kanga.list.mud-dev

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

[Full Header] [Plain Text]
From: Bruce <bruce@puremagic.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Tue, 08 May 2001 08:43:46 -0600
References: [1] [2] [3] [4] <-newest
Organization: Kanga.Nu
Kwon Ekstrom wrote:

> I don't know how to do this in C, with java, any exception stores
> the stack trace from the line it was thrown on.  You can then output
> the stack trace to a stream or a writer (I've written code to put
> the trace into a string array so I can attach it to my logs for
> later viewing online)

No, that's very different from what I'm asking.  What I wanted is
exactly what the pstack program that Neil Brown referenced
provides. The difference is that when you throw an exception, you can
grab a jmp_buf and use that to walk back up the stack which isn't so
hard.  My problem was different in that I want stacktraces at
arbitrary times, and without executing any code on that thread (like
to get a jmp_buf).

I just got back from a trip, so I'm looking forward to checking out
the pstack code later this week. :)

  - Bruce

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