On Thu, Dec 21, 2006 at 10:00:47AM +1100, Ben Elliston wrote:
> On Thu, 2006-12-21 at 09:56 +1100, Ben Elliston wrote:
> 
> > After some digging, I managed to work out why: the gcov runtime code
> > wants to create the .gcda file in the same directory that the object
> > file was created on the build system.  Unless the same directory
> > structure exists on the target, the gcov runtime code just skips writing
> > out the data file on exit.
> 
> To be more precise, the gcov runtime first tries to create the required
> path, but this is unlikely to succeed if it requires creating a new
> directory under / (which only root can typically do).  If it cannot
> create the full path before creating the data file, the gcov runtime
> code will just silently fail.

Ben, you understand what's going on here much better than I do, so if
you come up with a patch that works it's pre-approved.  Otherwise I
can take a look in a couple of weeks.

Janis

Reply via email to