On my last assignment (old FORTRAN code 77), we had cross-reference files that list which subprograms are called other subprograms, in which subprograms of files were defined, which common blocks contained which variables, which routines included some common blocks, etc. .d .. Then they were used by shell scripts that grepped cross-reference files and told you about the design of the program.
Now I am in a new company (C ++ code) and I found ctags to replace some of these functions. The only thing I missed was the command we called "who.calls", which lists which subroutines (I mean functions or methods that should get used to OO-talk) call this subroutine. For example, if a subroutine foocalls a subroutine bar:
>who.calls bar
foo
Any suggestions on how to do this without re-equipping the programming environment from my old company? I am looking for a super-regular expression or some other method that I can use on the command line, but I am open to other methods that use a completely different approach to give me the same information. I basically want to discover the stack of the debugging function without starting the debugger.
source
share