|
Re: gcov plug-in with eclipse [message #1010427 is a reply to message #1010149] |
Sun, 17 February 2013 08:50 |
Tamas Kleiber Messages: 20 Registered: December 2010 |
Junior Member |
|
|
You need a gprof/gcov enabled GCC generated executable. Read this tutorial. If you have the executable which was built with the proper settings you will get a set of .gcda and a .gcno files. You can double left click these files in your eclipse project explorer and get the coverage summary or annotated source code.
- Note, that your operating system must be set up in a way that eclipse could find a copy of c++filt.exe and addr2line.exe. If you GCC is registered correctly on the system this will be OK.
- Note that if possible you should use a recent GCC version as the gcov format changes often and the latest versions support switches like GCOV_PREFIX and GCOV_PREFIX_STRIP which are very useful.
- Note that in your project settings, you must set up binary parsers correctly otherwise you might get an error message when you select the executable after double clicking the coverage data files. If you are on windows, select Win 32 PE executable as active parser. On linux, activate an elf parser and so on.
- You should know that this plug-in is only capable of generating line coverage information while it is possible to get decision coverage with gcov itself too... you could check out lcov for further reference on the topic.
- If possible, you should try one of the latest nightly builds as there are important bug fixes in the unreleased development snapshots.
Additionally read this.
[Updated on: Sun, 17 February 2013 09:06] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04549 seconds