[project @ 1999-11-29 12:02:42 by keithw]
authorkeithw <unknown>
Mon, 29 Nov 1999 12:02:46 +0000 (12:02 +0000)
committerkeithw <unknown>
Mon, 29 Nov 1999 12:02:46 +0000 (12:02 +0000)
commit0ee487727b8410f7f9a35a212f06809c395fe70b
tree697582491b7fe8c459a816864f0c9df2701b3b9b
parent7700dda03d273676b274bc148491a4e02a7c5ae0
[project @ 1999-11-29 12:02:42 by keithw]
This commit adds the new RTS option `-xc', which prints the current
cost-centre stack to stderr whenever an exception is raised.  This is
intended to be a debugging tool, to help trace those "Prelude.head:
empty list" errors that are so frustrating to find.

`-xc' is only available for programs compiled with -prof, and you
probably want -auto as well to get useful information.

This is currently experimental; it would be better if it only
displayed the info for *uncaught* exceptions, but this is harder to
implement.

This commit also makes an OFTEL-inspired extension to the RTS option
space.  Since we've almost run out of options, `-x' is now reserved
for `extended' options.  `-xc' is the first of these, but that leaves
'-x[0-9A-Zabd-wyz]' still to be used!  The prefix `-xx' is reserved
for future extension.
ghc/docs/users_guide/runtime_control.vsgml
ghc/rts/RtsFlags.c
ghc/rts/RtsFlags.h
ghc/rts/Updates.hc