Rhodri James
2017-06-28 17:31:13 UTC
Folks,
for complicated and devious reasons I am trying to cross-compile a
program for Windows on Linux, run it under WINE and pick up coverage
information with gcov. Unfortunately it doesn't seem to work.
If I try this with a trivial hello world program:
$ i686-w64-mingw32-gcc --coverage -o hello.exe hello.c
$ wine hello.exe
Hello, world
$ ls
hello.c hello.exe hello.gcno
There is no hello.gcda file anywhere. A bit of quick poking reveals
that WINE doesn't even attempt to write to a .gcda file, and libgcov.a
is just a stub. Am I missing something, or does mingw not provide
coverage info for this setup?
for complicated and devious reasons I am trying to cross-compile a
program for Windows on Linux, run it under WINE and pick up coverage
information with gcov. Unfortunately it doesn't seem to work.
If I try this with a trivial hello world program:
$ i686-w64-mingw32-gcc --coverage -o hello.exe hello.c
$ wine hello.exe
Hello, world
$ ls
hello.c hello.exe hello.gcno
There is no hello.gcda file anywhere. A bit of quick poking reveals
that WINE doesn't even attempt to write to a .gcda file, and libgcov.a
is just a stub. Am I missing something, or does mingw not provide
coverage info for this setup?
--
Rhodri James *-* Kynesim Ltd
Rhodri James *-* Kynesim Ltd