When upgrading from version 13.8.9 to version 15.8b we found that cscope no longer output full path names when using the -P
The following src file change to find.c fixed the issue, though it has not been tested extensively so we dont know if this regressed other finctionality
% dpred find.c 619c619 < srcfiles[i]); --- > filepath(srcfiles[i])); 851c851 < (void) fprintf(output, "%s %s ", file, func); --- > (void) fprintf(output, "%s %s ", filepath(file), func); 1272c1272 < (void) fprintf(refsfound, "%s ", file); --- > (void) fprintf(refsfound, "%s ", filepath(file));
This was done on Red Hat 2.6.32-642.11.1.el6.x86_64
Diff:
There never was a version 13.8.9 in this incarnation of cscope, so this was not actually an upgrade, it was a tool switch. Nor did -P ever promise to print absolute paths --- it prints the relative paths with the prefix you gave as argument to the -P option.
Ok, your loss!