[fpc-devel] which compile cmmand line switches imply debug info?

Martin lazarus at mfriebe.de
Sat Sep 17 15:54:58 CEST 2011


On 17/09/2011 14:43, Jonas Maebe wrote:
> On 17 Sep 2011, at 15:39, Martin<lazarus at mfriebe.de>  wrote:
>
>> Does that mean -gh does add debug info?
> As the compiler help specifies, -g enables debug information. -gh is the same as -g -gh. You can use -g-h to enable heaptrc without debug information.
thanks for the tip

>> (stabs, unless others specified)?
> The default debug format depends on the target platform.
>
Is there documentation anywhere?
http://www.freepascal.org/docs-html/user/usersu15.html#x38-450005.1.4
says only:
-g  Generate debugging information for debugging with gdb.


After you wrote this, I did see that the compiler prints (-h)
   -g     Generate debug information (default format for target)

but I found nothing about which platform has which default format?




More information about the fpc-devel mailing list