Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] exception stack trace from --output-obj'ed Caml code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Lex Stein <stein@e...>
Subject: [Caml-list] exception stack trace from --output-obj'ed Caml code

Hi, I have OCAMLRUNPARAM set to b=1 and have compiled and linked with the
-g flag. I am doing linking with gcc because I have a C main and C
objects. The Caml code is compiled with the -output-obj flag to create a
.o that gcc links with. Unfortunately, I'm not seeing exception stack
traces for uncaught exceptions. For example, I get:

Fatal error: exception Invalid_argument("String.get")
(Program not linked with -g, cannot print stack backtrace)

Is there a way to solve this while continuing to use -output-obj to
generate a C-like object for gcc to link against ?

Thanks!
Lex

--
Lex Stein                     http://www.eecs.harvard.edu/~stein/
stein@eecs.harvard.edu        TEL: 617-233-0246

-------------------
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