English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] xor on booleans
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-10 (18:46)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] gdb with ocaml byte code on MacOSX
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