[m-dev.] using gdb on the compiler

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Aug 3 10:33:29 AEST 2005


On 26-Jul-2005, Ian MacLarty <maclarty at cs.mu.OZ.AU> wrote:
> I guess my mistake was to use LDFLAGS instead
> of MLFLAGS for -g.  I don't really see why that doesn't work though.

By default, the Mercury linker will pass "-s" to LD to automatically
strip the executable.  You need to explicitly pass the "--no-strip"
or "--c-debug" or "-g" option to ml disable that.

-- 
Fergus Henderson                    |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list