Browse thread
[Caml-list] Getting debugging symbols in ocamlopt-generated executable
- Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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? 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