Annotation of researchv9/jerq/sgs/dis/structs.h, revision 1.1

1.1     ! root        1: /*     @(#) structs.h: 1.1 5/22/83     */
        !             2: 
        !             3: #define NSECS  20      /* maximum number of defined sections */
        !             4: #define        FFUNC   10      /* maximum number of named functions    */
        !             5: #define        TEXT    0
        !             6: #define DATA   1
        !             7: 
        !             8: typedef struct scnlist SCNLIST;
        !             9: typedef struct funclist FUNCLIST;
        !            10: #if !OLIST
        !            11: typedef struct nfunction NFUNC;
        !            12: #endif
        !            13: 
        !            14: /*
        !            15:  * The linked list of scnlist's describes which sections are
        !            16:  * to be disassembled
        !            17:  */
        !            18: 
        !            19: struct scnlist
        !            20: {
        !            21:        SCNHDR          shdr;
        !            22:        SCNLIST         *snext;
        !            23:        unsigned short  scnum;
        !            24:        int             stype;          /* disassemble as text or data   */
        !            25:        FUNCLIST        *funcs;         /* the list of functions defined */
        !            26:                                        /* in this section               */
        !            27: };
        !            28: 
        !            29: /*
        !            30:  * A list of functions is associated with each section. This list is
        !            31:  * used for printing the names of the functions and resyncing.
        !            32:  */
        !            33: 
        !            34: struct funclist
        !            35: {
        !            36:        char            *funcnm;
        !            37:        long            faddr;          /* address of the function      */
        !            38:        long            fcnindex;       /* index of the function in the symbol table */
        !            39:        FUNCLIST        *nextfunc;
        !            40: #if OLIST
        !            41:        long            fend;           /* address of the end of the function */
        !            42: #endif
        !            43: };
        !            44: 
        !            45: /*
        !            46:  * If the -F option is specified, an array of nfunctions is set up
        !            47:  * contiaing information about the functions
        !            48:  */
        !            49: 
        !            50: #if !OLIST
        !            51: struct nfunction
        !            52: {
        !            53:        char    *funcnm;
        !            54:        long    faddr;
        !            55:        long    fcnindex;
        !            56:        long    fsize;
        !            57:        int     found;
        !            58:        unsigned short  fscnum;
        !            59: };
        !            60: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.