Annotation of coherent/d/bin/db/trace0.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * A debugger.
        !             3:  * Tables and stuff.
        !             4:  */
        !             5: #include <stdio.h>
        !             6: #include "trace.h"
        !             7: 
        !             8: /*
        !             9:  * Global variables.
        !            10:  */
        !            11: BPT    bpt[NBPT];                      /* Breakpoint table */
        !            12: FILE   *cfp;                           /* Core file pointer */
        !            13: FILE   *lfp;                           /* l.out file pointer */
        !            14: FILE   *sfp;                           /* Symbol table file pointer */
        !            15: INP    *inpp;                          /* Input pointer */
        !            16: MAP    *endpure;                       /* End of pure area */
        !            17: MAP    *segmapl[NSEGM];                /* Segment descriptors */
        !            18: SYM    *ssymp;                         /* Pointer to core symbol table */
        !            19: char   *errrstr;                       /* Last error */
        !            20: char   *lfn;                           /* l.out file name */
        !            21: char   *sinp;                          /* Command for single step */
        !            22: char   *trapstr;                       /* Fault type */
        !            23: char   miscbuf[MISSIZE];               /* Miscellaneous buffer */
        !            24: char   segform[NSEGM][FORSIZE];        /* Formats for segments */
        !            25: int    bitflag;                        /* Single step next instruction */
        !            26: int    cantype;                        /* Canonization type */
        !            27: int    cseg;                           /* Current segment */
        !            28: int    excflag;                        /* Programme is in execution */
        !            29: int    intflag;                        /* Interrupt count */
        !            30: int    lastc;                          /* Character for ungetn */
        !            31: int    modsize;                        /* Size of last display mode */
        !            32: int    objflag;                        /* Programme can run */
        !            33: int    pid;                            /* Current process id */
        !            34: int    regflag;                        /* Registers exist */
        !            35: int    hflag;                          /* debugging coherent */
        !            36: int    rflag;                          /* Read only flag */
        !            37: int    sflag;                          /* Don't read symbol table */
        !            38: int    sincmod;                        /* Last mode ran (if single) */
        !            39: int    sindecr;                        /* Single step count */
        !            40: int    sinmode;                        /* Single step mode */
        !            41: long   add;                            /* Address used by getb */
        !            42: long   dot;                            /* Current address */
        !            43: long   lad;                            /* Last address of dot */
        !            44: fsize_t        sbase;                          /* Base of symbols */
        !            45: fsize_t        snsym;                          /* Number of symbols */
        !            46: int    dbase = INPBASE;                /* input/ref addr radix */
        !            47: int    fflag;                          /* map as file */
        !            48: 
        !            49: /*
        !            50:  * Segment names.
        !            51:  */
        !            52: char *segname[] ={
        !            53:        "Data space",
        !            54:        "Instruction space",
        !            55:        "User area"
        !            56: };

unix.superglobalmegacorp.com

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