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] Getting debugging symbols in ocamlopt-generated executable
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: [Caml-list] Getting debugging symbols in ocamlopt-generated executable

(This is a Windows question)

I'm trying to debug a segfault which occurs in a natively-compiled
executable but not in the bytecode-equivalent program. I suspect that
the crash happens in libocamole.lib which is a C++ library linked
statically to the program. AFAICT libocamole.lib contains symbols (how
the hell _do_ you tell this sort of thing under Windows??).

The final link stage is:

ocamlopt -w s -I e:/d/cjs/libs/ocamole-pre.3b ocamole.cmxa excel.cmxa exceldemo.cmx -o exceldemo.opt.exe

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?


Richard Jones.
Merjis Ltd. - all your business data are belong to you.
PTHRLIB is a library for writing small, efficient and fast servers in C.
HTTP, CGI, DBI, lightweight threads:

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: