strace/m4
Dmitry V. Levin 556edf91e3 Enable coverage when strace is self terminated by signal
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.
2017-05-27 18:58:31 +00:00
..
ax_code_coverage.m4 Enable coverage when strace is self terminated by signal 2017-05-27 18:58:31 +00:00
ax_prog_cc_for_build.m4 Add copyright headers 2017-05-22 17:33:51 +00:00
ax_valgrind_check.m4 m4: fix check-valgrind-* rules generated by AX_VALGRIND_CHECK 2016-12-18 14:09:51 +00:00
mpers.m4 mpers.m4: check for struct stat64, struct stat, and their members 2016-08-24 12:10:55 +00:00
st_save_restore_var.m4 m4: introduce st_SAVE_VAR and st_RESTORE_VAR macros 2016-12-07 10:58:24 +00:00
st_warn_cflags.m4 Move all gl_WARN_ADD calls to a separate m4 macro 2016-12-07 10:59:52 +00:00
warnings.m4 m4: prepare gl_WARN_ADD for simultaneous use of multiple compilers 2016-12-07 15:53:13 +00:00