|
|
1.1 root 1: /*
2: * trace0.c
3: *
4: * The information contained herein is a trade secret of Mark Williams
5: * Company, and is confidential information. It is provided under a
6: * license agreement, and may be copied or disclosed only under the
7: * terms of that agreement. Any reproduction or disclosure of this
8: * material without the express written authorization of Mark Williams
9: * Company or persuant to the license agreement is unlawful.
10: *
11: * COHERENT Version 2.3.35
12: * Copyright (c) 1982, 1983, 1984.
13: * An unpublished work by Mark Williams Company, Chicago.
14: * All rights reserved.
15: *
16: * Tables and stuff.
17: */
18: #include <stdio.h>
19: #include <l.out.h>
20: #include "trace.h"
21:
22: /*
23: * Global variables.
24: */
25: BPT bpt[NBPT]; /* Breakpoint table */
26: FILE *cfp; /* Core file pointer */
27: FILE *lfp; /* l.out file pointer */
28: FILE *sfp; /* Symbol table file pointer */
29: INP *inpp; /* Input pointer */
30: MAP *endpure; /* End of pure area */
31: MAP *segmapl[NSEGM]; /* Segment descriptors */
32: SYM *ssymp; /* Pointer to core symbol table */
33: char *errrstr; /* Last error */
34: char *lfn; /* l.out file name */
35: char *sinp; /* Command for single step */
36: char *trapstr; /* Fault type */
37: char miscbuf[MISSIZE]; /* Miscellaneous buffer */
38: char segform[NSEGM][FORSIZE];/* Formats for segments */
39: int bitflag; /* Single step next instruction */
40: int cantype; /* Canonization type */
41: int cseg; /* Current segment */
42: int excflag; /* Programme is in execution */
43: int intflag; /* Interrupt count */
44: int lastc; /* Character for ungetn */
45: int modsize; /* Size of last display mode */
46: int objflag; /* Programme can run */
47: int pid; /* Current process id */
48: int regflag; /* Registers exist */
49: int rflag; /* Read only flag */
50: int sflag; /* Don't read symbol table */
51: int sincmod; /* Last mode ran (if single) */
52: int sindecr; /* Single step count */
53: int sinmode; /* Single step mode */
54: long add; /* Address used by getb */
55: long dot; /* Current address */
56: long lad; /* Last address of dot */
57: off_t sbase; /* Base of symbols */
58: off_t snsym; /* Number of symbols */
59:
60: HDRINFO hdrinfo; /* File header info */
61: off_t sngblsym; /* Number of coff.h global symbols */
62: off_t *gblsymMap; /* Maps global symbols to symbol table
63: area of the coff header */
64:
65: /*
66: * Segment names.
67: */
68: char *segname[] = {
69: "Data space",
70: "Instruction space",
71: "User area"
72: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.