public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* code coverage and profiling with gcc
@ 2002-07-16 14:00 Kevin Kress
  0 siblings, 0 replies; only message in thread
From: Kevin Kress @ 2002-07-16 14:00 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 1711 bytes --]

I have been trying to get a rather large project to work with the
-fprofile-arcs and -ftest-coverage flags.  This project produces 2
binaries, the problem I am having is that only one of these files is
producing ".da" files.  Both a compile with -g and a few -W and -I flags
and nothing else.

When I run strings on the binary that does not produce ".da" files I
find references to the .da files, so I am sure the flags are gettin
passed during compilation.

I am not able to recompile with a newer version of gcc (see the version
info below) since there are syntax errors reported in newer versions and
this code is not mine to do with as I please.

I am not sure how to go about debugging this either, I have tried
removing the directory structure that the ".da" files should be written
into, which usually causes an error message to be shown, this does not
occur on the problematic binary.

What I am wondering is are there any know cases where the code coverage
will not execute as expected?  How should I go about debugging this (I
have tried gdb and was unable to step into any useful functions)?


report of version from "gcc -v" || "g++ -v"

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

Any help would be appreciated.

Thanks in advance

--Kevin Kress

-- 
Kevin Kress (Software Engineer)
COM DEV Broadband
San Luis Obispo, CA
Phone: 805-544-1089
Fax:   805-544-2055

GnuPG/PGP Key ID: 8A811ECC
Fingerprint     : D244 8D76 327D F7B8 DAE6  FF72 30F0 694B 8A81 1ECC

See Keyserver: http://www.keyserver.net/en/findkey.html 
(search for "Kevin Kress" or "0x8A811ECC") 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-16 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-16 14:00 code coverage and profiling with gcc Kevin Kress

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).