[DGD] Re: About runtime errors

Erwin Harte harte at is-here.com
Tue Jan 6 21:38:53 CET 2004


On Tue, Jan 06, 2004 at 08:35:00PM +0000, Robert Forshaw wrote:
> I would like to know if its possible to find out where a runtime error 
> occured, like with compile errors? "Bad argument 1 for kfun strlen" isn't 
> very helpful if I don't know where the erronous call to strlen occurs...

That's where call_trace() comes into play, plus the 2nd parameter to
the function 'int caught' which indicates where in that trace the
error occured.

Have a look at how the kernel-lib uses it, that should get you on the
right track.

Cheers,

Erwin.
-- 
Erwin Harte <harte at is-here.com>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list