Re: [OFF-TOPIC ?] profiling and execl

From: George (greerga@CIRCLEMUD.ORG)
Date: 03/15/98


On Sun, 15 Mar 1998, Chris Jacobson wrote:

>I use the copyover patch - its an invaluable aid!
>
>However, one problem I have with it is that one cannot use profiling
>enabled and call execl - this results in the replacement process either
>being terminated (no core), or not executing (still haven't determined
>which of the two it is), and no gmon.out file being output.
>
>Is there a way to exec??() and still get the profiler dump?

You're running your MUD under GDB, correct? Try (in gdb before running):

handle SIGTRAP {ignore|nopass|pass|stop|nostop|etc..}

Although be warned that it will interfere with certain debugger commands.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST