* [Caml-list] exception stack trace from --output-obj'ed Caml code
@ 2003-06-16 2:59 Lex Stein
2003-06-16 15:05 ` Xavier Leroy
0 siblings, 1 reply; 2+ messages in thread
From: Lex Stein @ 2003-06-16 2:59 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-16 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-16 2:59 [Caml-list] exception stack trace from --output-obj'ed Caml code Lex Stein
2003-06-16 15:05 ` Xavier Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).