Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 Archives:
Bug reports: FAQ:
Beginner's list: