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 TAA21349; Mon, 10 Feb 2003 19:46:42 +0100 (MET) 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 TAA19439 for ; Mon, 10 Feb 2003 19:46:41 +0100 (MET) Received: from inria.fr (macaque.inria.fr [128.93.8.158]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h1AIkff28643 for ; Mon, 10 Feb 2003 19:46:41 +0100 (MET) Date: Mon, 10 Feb 2003 19:47:29 +0100 Subject: Re: [Caml-list] gdb with ocaml byte code on MacOSX Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) From: Damien Doligez To: caml-list@inria.fr Content-Transfer-Encoding: 7bit In-Reply-To: <20030210081605.GA5460@opus.davidb.org> Message-Id: <1B0D3728-3D28-11D7-B319-0003930FCE12@inria.fr> X-Mailer: Apple Mail (2.551) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Monday, February 10, 2003, at 09:16 AM, David Brown wrote: > Has anyone successfully gdb'd the bytecode interpreter under macosx? I > don't seem to be able to set any breakpoints (I want to debug my C code > it calls). I have no problems doing that, but I've only tried it on the debug version of ocamlrun. To build it: cd .../byterun make ocamlrund cp ocamlrund /usr/local/bin/ocamlrun (wherever you installed ocamlrun) cp libcamlrund.a /usr/local/lib/ocaml/libcamlrun.a (idem) ranlib /usr/local/lib/ocaml/libcamlrun.a Then you can compile with ocamlc and run your programs under gdb. Be aware that the debug version is noticeably slower because the memory manager does a lot of checking on its data structures. -- Damien ------------------- 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