I have a large project that has a somewhat quirky coding style (lots of questionable macros) and I'm trying to get cscope to give me a list of functions that call another function, X.

My understanding is that that is what the -L3 option is for. However, when I run -L3 on any function of interest, cscope reports no results. -L0, however, does list everything.

So for now, my project parses the output of -L0 and attempts to ignore references that do not apply. However, I don't understand why -L3 isn't working. cscope is obviously able to parse the C code correctly.

Here's an example:

$ cscope  -d   -L0 constructPwrChannel
kernel/inc/pmgr/pwrchannel.h <global> 149 BoardObjConstruct constructPwrChannel;
kernel/pmgr/nv/pwrchannel.c <global> 136 constructPwrChannel
kernel/pmgr/nv/pwrchannel.c <global> 774 return constructPwrChannel(pGpu, 
ppBoardObj, size, pArgs);
kernel/pmgr/nv/pwrchannel_pstate_est_lut.c <global> 57 status = 
constructPwrChannel(pGpu, ppBoardObj, size, pArgs);
kernel/pmgr/nv/pwrchannel_sensor.c <global> 56 status = 
constructPwrChannel(pGpu, ppBoardObj, size, pArgs);
kernel/pmgr/nv/pwrchannel_sum.c <global> 60 status = constructPwrChannel(pGpu, 
ppBoardObj, size, pArgs);

In this case, -L3 should return the last four lines, but I get nothing instead:

$ cscope  -vd   -L3 constructPwrChannel
Search 7434 of 11098
$


_______________________________________________
Cscope-devel mailing list
Cscope-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cscope-devel

Reply via email to