I'm using gcov for block-count profiling, and I'm finding the output very difficult to read. I am used to lcc
and its excellent bprint
program, which rewrites the source code, placing the count immediately in front of the block in question. So instead of
6772619: 63: assert(p == pts->limit || !DELIMP(p, delims));
6772619: 63-block 0
6748514: 63-block 1
6748514: 63-block 2
$$$$$: 63-block 3
I would like to get somthing like
63: assert(<6772619>p == pts->limit || <6748514>!DELIMP(p, delims));
which I find infinitely more readable. I have a sinking feeling that gcc doesn't track column numbers, so this kind of output may be impossible, but does anybody know a trick? Or another tool that supports C99 and will help with statement-count coverage? I would be happy with a tool that rewrites source code if needed.