KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
gcov.h File Reference

Code-coverage (.gcda) output on top of GCC's libgcov. More...

#include <sys/cdefs.h>

Go to the source code of this file.

Macros

#define GCOV_PREFIX   "GCOV_PREFIX"
 Environment variable to set the output directory for .gcda files.
 
#define GCOV_PREFIX_STRIP   "GCOV_PREFIX_STRIP"
 Environment variable to control path stripping.
 

Functions

void kos_gcov_dump (void)
 Write coverage data for every instrumented object.
 

Detailed Description

Code-coverage (.gcda) output on top of GCC's libgcov.

Writes GCC coverage (.gcda) files on a KOS target. The coverage runtime is the toolchain's own libgcov; this addon supplies the file I/O that GCC's freestanding libgcov leaves to the platform. Build with –coverage and kos-cc wires everything up; coverage is flushed automatically at exit.

Author
Andress Barajas