comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <jacob@jacob-sparre.dk>
Subject: Re: link errors with GNAT GPL 2016 and gprof
Date: Mon, 04 Sep 2017 07:52:34 +0200
Date: 2017-09-04T07:52:34+02:00	[thread overview]
Message-ID: <87efrn9fj1.fsf@jacob-sparre.dk> (raw)
In-Reply-To: 6d6e96b3-b881-43d7-a5cc-5c131ac97c03@googlegroups.com

Stephen Leake <stephen_leake@stephe-leake.org> writes:

We're using "gcov" regularly on a project I'm working on.  (For some
reason I can't get "gprof" to give me meaningful data, even though
"gcov" works fine.)

The whole setup is for various reasons a bit complex, but in its
essense, it reduces to:

   project Build is
      [...]

      package Compiler is
         for Default_Switches ("Ada") use ([...],
                                           "-fprofile-arcs",
                                           "-ftest-coverage");
      end Compiler;

      package Linker is
         for Default_Switches ("Ada") use ([...],
                                           "-pg",
                                           "-fprofile-arcs");
      end Linker;
   end Build;

Greetings,

Jacob
-- 
"people who live in glass houses shouldn't be throwing rocks
 -- especially at those who don't live in glass houses"


      parent reply	other threads:[~2017-09-04  5:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-02 22:02 link errors with GNAT GPL 2016 and gprof Stephen Leake
2017-09-03 16:01 ` Anh Vo
2017-09-03 18:23   ` Stephen Leake
2017-09-03 19:26     ` gautier_niouzes
2017-09-04  0:07       ` Stephen Leake
2017-09-04 21:01         ` gautier_niouzes
2017-09-04  5:52 ` Jacob Sparre Andersen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox