From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id EAA24979; Mon, 16 Jun 2003 04:59:23 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA25238 for ; Mon, 16 Jun 2003 04:59:21 +0200 (MET DST) Received: from mail.eecs.harvard.edu (bowser.eecs.harvard.edu [140.247.60.24]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h5G2xKH15219 for ; Mon, 16 Jun 2003 04:59:20 +0200 (MET DST) Received: by mail.eecs.harvard.edu (Postfix, from userid 32018) id 0170854C500; Sun, 15 Jun 2003 22:59:17 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.eecs.harvard.edu (Postfix) with ESMTP id EEE8A54C4FD for ; Sun, 15 Jun 2003 22:59:17 -0400 (EDT) Date: Sun, 15 Jun 2003 22:59:17 -0400 (EDT) From: Lex Stein To: caml-list@inria.fr Subject: [Caml-list] exception stack trace from --output-obj'ed Caml code Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam: no; 0.00; stein:01 gcc:01 -output-obj:01 backtrace:01 c-like:01 linked:01 caml:01 exception:02 linking:02 uncaught:02 stack:02 objects:02 string:03 eecs:03 argument:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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