[m-dev.] using gdb on the compiler

Ian MacLarty maclarty at cs.mu.OZ.AU
Tue Jul 26 01:01:23 AEST 2005


I can't seem to get C level debugging working on the compiler.
I've got the following in my Mmake.params file:
GRADE=asm_fast.gc.decldebug
EXTRA_CFLAGS=-O0 -g
EXTRA_LDFLAGS=-g
and I run the compiler using the lmc script with MMC_UNDER_GDB=true,
but I get "no debugging symbols found" messages and no context
(line no/filenames) in gdb.
It does know the function names though, but that seems to be all.

I swear I've done the same in the past and it's worked.
Can anyone tell me what I've missed.

Ian.

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