[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#415194: libextlib-ocaml-dev: No debugging information



On Mon, Apr  9, 2007 at 14:47:40 +0200, Stefano Zacchiroli wrote:

> On Mon, Apr 09, 2007 at 09:25:34PM +1000, skaller wrote:
> > Is it still possible to use the debugger and get a backtrace etc 
> > if there are no debugging symbols in these libraries?
> 
> Of course not, but this is not the point. Indeed, the same argument can
> be made for C libraries, but for C libraries the default is not to ship
> debugging symbols, why OCaml should make a difference from this point of
> view? That's the question we should find an answer for (or alternatively
> remove the debugging symbols from all OCaml libraries...).
> 
OCaml libraries are static, so if there is a way to take a library
compiled with -g and link a program with it that results in an
executable without debugging symbols, then I think we should do that,
because that means you would decide at link time whether you want your
program to carry debugging symbols, and library packages are only useful
for developers anyway.

Cheers,
Julien



Reply to: