H. J. Lu wrote:
Yes, that will work. Is anyone working on this? If not, we can take a look.
I have not heard anything back from the original enquirer/volunteer over a month ago. I suggest GCOV_PREFIX as the variable name and simply concatenate it to the absolute paths in the object file. I'm not sure about whether mkdir calls should be automatically performed, probably yes.
You might want or need to get cleverer and have some way of indicating how many initial directory names to strip off the hardwired absolute paths. Maybe this should be done by string matching or level counting. Perhaps GCOV_PREFIX_STRIP would be a suitable name.
Use alloca rather than malloc, if at all possible please. Thanks for taking this up.
nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC [EMAIL PROTECTED] :: http://www.planetfall.pwp.blueyonder.co.uk