Annotation of coherent/b/bin/db/db0.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * db/db0.c
                      3:  * A debugger.
                      4:  * Global variables.
                      5:  */
                      6: 
                      7: #include "db.h"
                      8: 
                      9: /*
                     10:  * Global variables.
                     11:  */
                     12: ADDR_T add;                            /* Address used by getb         */
                     13: char   *addr_fmt = ADDR_FMT;           /* ADDR_T format for printf     */
                     14: int    aop_size;                       /* Default address/operand size */
                     15: BPT    bpt[NBPT];                      /* Breakpoint table             */
                     16: #ifndef        NOCANON
                     17: int    cantype;                        /* Canonization type            */
                     18: #endif
                     19: char   *cfn;                           /* Core file name               */
                     20: FILE   *cfp;                           /* Core file pointer            */
                     21: FILEHDR        coff_hdr;                       /* COFF file header             */
                     22: int    cseg;                           /* Current segment              */
                     23: ADDR_T dot;                            /* Current address              */
                     24: MAP    *endpure;                       /* End of pure area             */
                     25: int    execflag;                       /* Program is in execution      */
                     26: int    file_type;                      /* LOUT_FILE or COFF_FILE       */
                     27: INP    *inpp;                          /* Input pointer                */
                     28: int    intflag;                        /* Interrupt count              */
                     29: char   *lasterr;                       /* Last error                   */
                     30: struct ldheader        ldh;                    /* l.out header                 */
                     31: char   *lfn;                           /* l.out file name              */
                     32: FILE   *lfp;                           /* l.out file pointer           */
                     33: char   miscbuf[MISSIZE];               /* Miscellaneous buffer         */
                     34: int    modsize;                        /* Size of last display mode    */
                     35: long   nsyms;                          /* Number of symbols            */
                     36: ADDR_T old_add;                        /* Previous address             */
                     37: int    pid;                            /* Current process id           */
                     38: char   *prompt = PROMPT;               /* Interactive command prompt   */
                     39: int    reg_flag;                       /* R_INVALID, R_SOME, R_GEN, R_ALL */
                     40: int    rflag;                          /* Read only flag               */
                     41: char   seg_format[NSEGS][FORSIZE];     /* Segment formats              */
                     42: MAP    *seg_map[NSEGS];                /* Segment descriptors          */
                     43: char   *seg_name[NSEGS] = { "Data space", "Instruction space", "User area" };
                     44:                                        /* Segment names                */
                     45: int    sflag;                          /* Don't read symbol table      */
                     46: FILE   *sfp;                           /* Symbol table file pointer    */
                     47: char   *step_cmd;                      /* Command for single step      */
                     48: int    step_count;                     /* Single step count            */
                     49: int    step_mode;                      /* Single step mode             */
                     50: int    step_prev;                      /* Last mode run (if single)    */
                     51: SYM    *symhash[NHASH];                /* SYM table hash buckets       */
                     52: int    ungotc;                         /* Ungot character              */
                     53: 
                     54: /* end of db/db0.c */

unix.superglobalmegacorp.com

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