Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] getting stack traces in running code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] getting stack traces in running code
On Wednesday, December 3, 2003, at 04:19 AM, Nicolas Cannasse wrote:

> BTW, if the "print_exception_backtrace" of the caml sources was 
> exported as
> Primitive, we would be able to do it without the need of any C stub : 
> the
> other way to do it is then to run a modified interpreter where 
> CAMLexport
> have been replaced with CAMLprim in backtrace.c....

Don't do that.  print_exception_backtrace returns void, but a CAMLprim
must return a value.  You'll have to make it return Val_unit.

-- Damien

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners