1: /*
2: * UNIX 2.9BSD CRASH ANALYZER INCLUDE
3: */
4:
5: #define END 0,0,0 /* Last structure entry */
6:
7: /* Format codes */
8:
9: # define OCT 1
10: # define TADDR 2 /* text address symbolic printing */
11: # define DEC 3 /* Decimal, unsigned */
12: # define DEV 4
13: # define ONEBYTE 5
14: # define CHARS 6
15: # define HALFDEC 7
16: # define DADDR 8 /* data address symbolic printing */
17: # define LONGDEC 9 /* long decimal printout */
18: # define LONGOCT 10 /* long octal printout */
19: # define UDEC 11 /* unsigned decimal */
20: # define HEXL 12
21: # define HEXW 13
22: # define HEX 13
23: # define HEXB 14
24: # define IGNORE 15 /* ignore this entry */
25:
26: # define NEWPAGE 014 /* FF */
27: # define LINESPERPAGE 60 /* page size */
28:
29: # define NSYM 0 /* undefined */
30: # define ISYM 2 /* if you want a text symbol */
31: # define DSYM 7 /* data, or bss symbol */
32:
33: #define NOTFOUND 0177777 /* value indicating symbol not found */
34:
35: struct fetch {
36: char *symbol; /* Symboltable entry name */
37: char *addr; /* Addr to load to */
38: int f_size; /* # of bytes to load */
39: };
40:
41: struct display {
42: char *msg; /* Message to preceed element */
43: char *place; /* Base addr of data (offset added here) */
44: int fmt; /* display format */
45: int (*routine)(); /* extra routine to call per field */
46: };
47:
48:
49: /*
50: * Interrupt Tracing Strutures - The SYS Group
51: */
52: struct itrace {
53: unsigned intps; /* interrupted PS */
54: unsigned intpc; /* interrupted PC */
55: unsigned r0; /* r0 from trap vector */
56: unsigned savps; /* saved PS (software traps) */
57: };
58:
59:
60:
61: struct syment {
62: char name[8];
63: char flags;
64: char ovno;
65: unsigned value;
66: };
67:
68: struct symsml {
69: char sflags;
70: char sovno;
71: unsigned svalue;
72: };
73:
74: unsigned find();
75: unsigned findv();
Defined struct's
display
defined in line
41; used 30 times
- in /usr/src/new/crash/crash.c line
192(2),
200(2),
212(2),
222(2),
231(2),
255(2),
288(2),
329(2),
343(2),
379(2),
416(2)
- in /usr/src/new/crash/crashsubs.c line
416(2)
- in /usr/src/new/crash/dispnet.c line
185(2),
204(2),
214(2)
fetch
defined in line
35; used 12 times
syment
defined in line
61; used 20 times
symsml
defined in line
68; used 14 times
Defined macros
CHARS
defined in line
14; used 1 times
DADDR
defined in line
16; used 2 times
DEC
defined in line
11; used 36 times
- in /usr/src/new/crash/crash.c line
215-216(2),
242-248(3),
257-258(2),
269-282(8),
290,
332,
345-348(3),
392,
403-405(3),
422,
430-431(2),
441
- in /usr/src/new/crash/dispnet.c line
186-189(4),
196-200(3),
216
DEV
defined in line
12; used 9 times
DSYM
defined in line
31; used 10 times
END
defined in line
5; used 18 times
- in /usr/src/new/crash/crash.c line
195,
207,
217,
225,
251,
283,
324,
338,
352,
410,
443,
530-535(2),
545
- in /usr/src/new/crash/dispnet.c line
182,
201,
211,
217
HEX
defined in line
22; used 1 times
HEXB
defined in line
23;
never used
HEXL
defined in line
20; used 5 times
HEXW
defined in line
21;
never used
ISYM
defined in line
30; used 7 times
NSYM
defined in line
29; used 1 times
OCT
defined in line
9; used 91 times
- in /usr/src/new/crash/crash.c line
194,
201-206(4),
213,
223,
233-250(9),
256-265(8),
271-281(6),
291-323(32),
330-337(3),
347,
380-381(2),
390-409(13),
429-440(9)
- in /usr/src/new/crash/crashsubs.c line
638
TADDR
defined in line
10; used 3 times
UDEC
defined in line
19; used 8 times
Usage of this include