how can I display all function name from cscope database?
问题 I am trying to find a way to dump ALL the functions name and it's path from cscope database. Is there a way to do that from cscope CLI? Note: the cscope source code is available for download. 回答1: Try the following: cscope -R -L -2 ".*" | awk -F ' ' '{print $2 "#" $1}' | sort | uniq The command cscope -R -L -2 ".*" will output functions called by any function (see explanation of the options below). For each reference found, cscope outputs a line consisting of the file name, function name,