2 * |-----------------------------------------------------------|
3 * | Copyright (c) 1992, 1991, 1990 MIPS Computer Systems, Inc.|
4 * | MIPS Computer Systems, Inc. grants reproduction and use |
5 * | rights to all parties, PROVIDED that this comment is |
6 * | maintained in the copy. |
7 * |-----------------------------------------------------------|
11 /* (C) Copyright 1984 by Third Eye Software, Inc.
13 * Third Eye Software, Inc. grants reproduction and use rights to
14 * all parties, PROVIDED that this comment is maintained in the copy.
16 * Third Eye makes no claims about the applicability of this
17 * symbol table to a particular use.
20 /* glevels for field in FDR */
23 #define GLEVEL_2 0 /* for upward compat reasons. */
26 /* magic number fo symheader */
27 #define magicSym 0x7009
33 #define langAssembler 3 /* one Assembley inst might map to many mach */
40 #define langMax 10 /* maximun allowed 32 -- 5 bits */
42 /* The following are value definitions for the fields in the SYMR */
49 #define scText 1 /* text symbol */
50 #define scData 2 /* initialized data symbol */
51 #define scBss 3 /* un-initialized data symbol */
52 #define scRegister 4 /* value of symbol is register number */
53 #define scAbs 5 /* value of symbol is absolute */
54 #define scUndefined 6 /* who knows? */
55 #define scCdbLocal 7 /* variable's value is IN se->va.?? */
56 #define scBits 8 /* this is a bit field */
57 #define scCdbSystem 9 /* variable's value is IN CDB's address space */
58 #define scDbx 9 /* overlap dbx internal use */
59 #define scRegImage 10 /* register value saved on stack */
60 #define scInfo 11 /* symbol contains debugger information */
61 #define scUserStruct 12 /* address in struct user for current process */
62 #define scSData 13 /* load time only small data */
63 #define scSBss 14 /* load time only small common */
64 #define scRData 15 /* load time only read only data */
65 #define scVar 16 /* Var parameter (fortran,pascal) */
66 #define scCommon 17 /* common variable */
67 #define scSCommon 18 /* small common */
68 #define scVarRegister 19 /* Var parameter in a register */
69 #define scVariant 20 /* Variant record */
70 #define scSUndefined 21 /* small undefined(external) data */
71 #define scInit 22 /* .init section symbol */
72 #define scBasedVar 23 /* Fortran or PL/1 ptr based var */
73 #define scXData 24 /* exception handling data */
74 #define scPData 25 /* Procedure section */
75 #define scFini 26 /* .fini section */
83 #define stNil 0 /* Nuthin' special */
84 #define stGlobal 1 /* external symbol */
85 #define stStatic 2 /* static */
86 #define stParam 3 /* procedure argument */
87 #define stLocal 4 /* local variable */
88 #define stLabel 5 /* label */
89 #define stProc 6 /* " " Procedure */
90 #define stBlock 7 /* beginnning of block */
91 #define stEnd 8 /* end (of anything) */
92 #define stMember 9 /* member (of anything - struct/union/enum */
93 #define stTypedef 10 /* type definition */
94 #define stFile 11 /* file name */
95 #define stRegReloc 12 /* register relocation */
96 #define stForward 13 /* forwarding address */
97 #define stStaticProc 14 /* load time only static procs */
98 #define stConstant 15 /* const */
99 #define stStaParam 16 /* Fortran static parameters */
100 /* Psuedo-symbols - internal to debugger */
101 #define stStr 60 /* string */
102 #define stNumber 61 /* pure number (ie. 4 NOR 2+2) */
103 #define stExpr 62 /* 2+2 vs. 4 */
104 #define stType 63 /* post-coersion SER */
107 /* definitions for fields in TIR */
109 /* type qualifiers for ti.tq0 -> ti.(itqMax-1) */
110 #define tqNil 0 /* bt is what you see */
111 #define tqPtr 1 /* pointer */
112 #define tqProc 2 /* procedure */
113 #define tqArray 3 /* duh */
114 #define tqFar 4 /* longer addressing - 8086/8 land */
115 #define tqVol 5 /* volatile */
116 #define tqConst 6 /* const */
119 /* basic types as seen in ti.bt */
120 #define btNil 0 /* undefined */
121 #define btAdr 1 /* address - integer same size as pointer */
122 #define btChar 2 /* character */
123 #define btUChar 3 /* unsigned character */
124 #define btShort 4 /* short */
125 #define btUShort 5 /* unsigned short */
126 #define btInt 6 /* int */
127 #define btUInt 7 /* unsigned int */
128 #define btLong 8 /* long */
129 #define btULong 9 /* unsigned long */
130 #define btFloat 10 /* float (real) */
131 #define btDouble 11 /* Double (real) */
132 #define btStruct 12 /* Structure (Record) */
133 #define btUnion 13 /* Union (variant) */
134 #define btEnum 14 /* Enumerated */
135 #define btTypedef 15 /* defined via a typedef, isymRef points */
136 #define btRange 16 /* subrange of int */
137 #define btSet 17 /* pascal sets */
138 #define btComplex 18 /* fortran complex */
139 #define btDComplex 19 /* fortran double complex */
140 #define btIndirect 20 /* forward or unnamed typedef */
141 #define btFixedDec 21 /* Fixed Decimal */
142 #define btFloatDec 22 /* Float Decimal */
143 #define btString 23 /* Varying Length Character String */
144 #define btBit 24 /* Aligned Bit String */
145 #define btPicture 25 /* Picture */
146 #define btVoid 26 /* void */
147 #define btLongLong 27 /* long long */
148 #define btULongLong 28 /* unsigned long long */
152 /* optimization type codes */
154 #define otReg 1 /* move var to reg */
155 #define otBlock 2 /* begin basic block */
156 #define otProc 3 /* procedure */
157 #define otInline 4 /* inline procedure */
158 #define otEnd 5 /* whatever you started */
159 #define otMax 6 /* KEEP UP TO DATE */
160 #endif (_MFG == _MIPS)