Skip to content

What is the second number in BRDA? And why it is changed after merging tracefiles? #402

Answered by henry2cox
myler asked this question in Q&A
Discussion options

You must be logged in to vote

Yep. For macros, you need to break up the lines you care about, so all the statements don't have the same address.
And you have to munge the #line directives (not all of them...just the ones you care about).

If the issue is common headers and you want data from only one (or some) specific tools, then one approach is to configure two build areas - one instrumented for coverage, one not.
Compile both of them - then swap the instrumented executables into the opt build. Shared libraries are going to be a bigger issue.

With respect to munging lcov data: the GCDA file corresponds to the compilation unit.
If you are thinking about transitively included headers (not directly included into the cpp…

Replies: 7 comments 13 replies

Comment options

You must be logged in to vote
3 replies
@myler
Comment options

@myler
Comment options

@myler
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@myler
Comment options

Comment options

You must be logged in to vote
1 reply
@myler
Comment options

Comment options

You must be logged in to vote
7 replies
@myler
Comment options

@henry2cox
Comment options

@myler
Comment options

@henry2cox
Comment options

@myler
Comment options

Comment options

You must be logged in to vote
1 reply
@myler
Comment options

Answer selected by myler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants