Menu

#14 output format

closed-works-for-me
None
5
2007-10-03
2007-10-01
Riccardo
No

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

Discussion

  • Hans-Bernhard Broeker

    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.

     
  • Riccardo

    Riccardo - 2007-10-02

    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.

     
  • Hans-Bernhard Broeker

    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.

     
  • Riccardo

    Riccardo - 2007-10-03

    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

     
  • Hans-Bernhard Broeker

    • assigned_to: nobody --> broeker
    • status: open --> closed-works-for-me