caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Getting debugging symbols in ocamlopt-generated executable
@ 2003-08-20 13:25 Richard Jones
  2003-08-20 13:37 ` Xavier Leroy
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Jones @ 2003-08-20 13:25 UTC (permalink / raw)
  To: caml-list


(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?

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - 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: http://www.annexia.org/freeware/pthrlib/

-------------------
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-20 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-20 13:25 [Caml-list] Getting debugging symbols in ocamlopt-generated executable Richard Jones
2003-08-20 13:37 ` Xavier Leroy
2003-08-20 14:02   ` Richard Jones
2003-08-20 14:26     ` Nicolas Cannasse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).