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 PAA00341; Wed, 20 Aug 2003 15:38:22 +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 PAA31817 for ; Wed, 20 Aug 2003 15:38:21 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h7KDbnf07950; Wed, 20 Aug 2003 15:37:49 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA27012; Wed, 20 Aug 2003 15:37:48 +0200 (MET DST) Date: Wed, 20 Aug 2003 15:37:48 +0200 From: Xavier Leroy To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] Getting debugging symbols in ocamlopt-generated executable Message-ID: <20030820153748.A31267@pauillac.inria.fr> References: <20030820132527.GA15864@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20030820132527.GA15864@redhat.com>; from rich@annexia.org on Wed, Aug 20, 2003 at 02:25:27PM +0100 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 debugging:01 crashes:01 ocamlopt:01 mingw:01 msvc:01 -ccopt:02 executable:03 i'm:07 fun:08 100%:91 produces:08 opt:09 port:10 U4:88 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > This produces exceldemo.opt.exe (which crashes), but VC++ tells me > that this executable doesn't contain any symbols. Debugging the > assembly is not much fun. > How do I get symbols? You could try to pass the appropriate option to the C linker using -ccopt during the final link stage. For the MSVC port: ocamlopt -ccopt /Zi .... For the Mingw port: ocamlopt -ccopt -g ... I'm not 100% sure it works, but it's worth a try. - Xavier Leroy ------------------- 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