for review: stack dumps.

Tyson Dowd trd at stimpy.cs.mu.oz.au
Wed Mar 4 13:30:38 AEDT 1998


On 04-Mar-1998, Andrew Bromage <bromage at cs.mu.OZ.AU> wrote:
> G'day all.
> 
> Tyson Dowd wrote:
> 
> > > Adding a new grade is not that hard.
> > 
> > Yes, but I wonder whether a debugging grade that includes a low-impact
> > execution trace (turned off with a global flag by default) and stack
> > traces would be a better way to do it.  Or it would probably be possible
> > to merge stack traces with profiling too.
> 
> I agree with this assessment.  As the only person who still seems to use
> the debug grade still, I find that after a stack dump, then I need to do
> an execution trace (in the case of the compiler, Sicstus does the job),
> then I need another stack dump...
> 
> Having this stuff in one grade (a sort of lightweight debug grade) would
> help a lot.

I hope it will be somewhat like "-g" with gcc -- lightweight enough to
leave on even when you don't really need it.  (Of course, the proposed
stack traces implementation could be trimmed quite a bit, it adds a bit
of size to executables, particularly string constants).




More information about the developers mailing list