Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-02

Command line parameter for using heaptrc without debuginfo

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

Hi,

I want to include memory checking in my test application without having the debuginfo (since that makes the application 10 times as big and takes longer to compile).

Even without debuginfo it gives information, about the number of allocated memory blocks that are not freed and whether some memory has taken place. To find the location a recompilation with debug info is needed of course.

I tried to set -gh -Xs includes the debuginfo. Also the following did not work: -gh -g-
or
-gh -gl-

What worked is
-g- -Xs
and add uses heaptrc to the main program.

Is this the only solution?

Is the current behavior (enabling debuginfo if -gh is passed) by design?

Vincent

P.S. While typing I got an idea:
-Faheaptrc
does exactly what I want. I just thought -gh would do the same.

Reply by email