Hi
I'd like to have a global vision of the quality of cscope parsing. For that I would like to read the full cross reference generated (cscope.out). I cannot find any doc about it. Is this format documented ?
Thanks
There's no documentation because the format is not intended for outside usage.
But if you generate it with digraph compression disabled (the -c option), the format is mostly self-explanatory. Items found by the scanner are in lines with a leading <TAB>, annotated with a single letter identifying the type of item.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the info. I found a text with my source code cut in pieces but I could not find the systematic logic of it.
Actually all I need is the type of each symbol, where it is present, and who calls it (call graph). But I would like to have the complete information, not an interactive application. It is for my database.
Is there another output format where I can have the full cross reference with files/lines easily readable ?
Thanks for any help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think you've been searching in the wrong place from the start. You want cscope line mode, or non-interactive mode. See the man page about the '-l' and '-L' options. E.g. to list all function calls:
cscope -dL3 ".*
cscope doesn't do call graphs on its own, but there are separate tools that use cscope output to construct one.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=27517
Originator: NO
There's no documentation because the format is not intended for outside usage.
But if you generate it with digraph compression disabled (the -c option), the format is mostly self-explanatory. Items found by the scanner are in lines with a leading <TAB>, annotated with a single letter identifying the type of item.
Logged In: YES
user_id=1082863
Originator: YES
Thanks for the info. I found a text with my source code cut in pieces but I could not find the systematic logic of it.
Actually all I need is the type of each symbol, where it is present, and who calls it (call graph). But I would like to have the complete information, not an interactive application. It is for my database.
Is there another output format where I can have the full cross reference with files/lines easily readable ?
Thanks for any help.
Logged In: YES
user_id=27517
Originator: NO
I think you've been searching in the wrong place from the start. You want cscope line mode, or non-interactive mode. See the man page about the '-l' and '-L' options. E.g. to list all function calls:
cscope -dL3 ".*
cscope doesn't do call graphs on its own, but there are separate tools that use cscope output to construct one.
Logged In: YES
user_id=1082863
Originator: YES
ok thanks
I found cbrowser that works quite all right on mac.
now I'll focus on non interactive mode to have all info by myself.
thanks a lot