Browse thread
[Caml-list] Getting debugging symbols in ocamlopt-generated executable
-
Richard Jones
- Xavier Leroy
[
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: | Xavier Leroy <xavier.leroy@i...> |
| Subject: | Re: [Caml-list] Getting debugging symbols in ocamlopt-generated executable |
> 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?
You could try to pass the appropriate option to the C linker using
-ccopt during the final link stage.
For the MSVC port:
ocamlopt -ccopt /Zi ....
For the Mingw port:
ocamlopt -ccopt -g ...
I'm not 100% sure it works, but it's worth a try.
- Xavier Leroy
-------------------
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