Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 Archives:
Bug reports: FAQ:
Beginner's list: