Dmitry V. Levin
556edf91e3
The data collected by -fprofile-arcs during program run is saved on program exit. When program is terminated by signal, the data is not saved. However, libgcov provides an interface to dump the data at runtime. * m4/ax_code_coverage.m4 (AX_CODE_COVERAGE): Add -DENABLE_COVERAGE_GCOV to CODE_COVERAGE_CPPFLAGS. * strace.c [ENABLE_COVERAGE_GCOV] (__gcov_flush): New prototype. (main) [ENABLE_COVERAGE_GCOV]: Call __gcov_flush() before raise() and sigprocmask() calls that might cause program termination. |
||
---|---|---|
.. | ||
ax_code_coverage.m4 | ||
ax_prog_cc_for_build.m4 | ||
ax_valgrind_check.m4 | ||
mpers.m4 | ||
st_save_restore_var.m4 | ||
st_warn_cflags.m4 | ||
warnings.m4 |