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?

--
Rhodri James *-* Kynesim Ltd

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to