[fpc-devel] Which unit does -gl parameter use?

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Aug 23 10:23:52 CEST 2010


Hi,

When you add the -gl   (debug line info added to compiled executable)
parameter to a project, which unit does it use to gather the debug
information?

  LineInfo (via stab information) or  LnfoDwrf (via dwarf information)?


How do you toggle between the two? How do I know which one of the two
is being used?

At the moment, when I compile with -gl, then the GetLineInfo doesn't
return any function name information. I then removed the -gl and
explicitly added LnfoDwrf into my project uses clause (thinking that
Stab info might be old and outdated), and still the function name
information return by GetLineInfo was blank.  I'm testing on a 64-bit
Linux system.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list