]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_OSREFERENCE_HEADER_START@ | |
5 | * | |
6 | * This file contains Original Code and/or Modifications of Original Code | |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. The rights granted to you under the | |
10 | * License may not be used to create, or enable the creation or | |
11 | * redistribution of, unlawful or unlicensed copies of an Apple operating | |
12 | * system, or to circumvent, violate, or enable the circumvention or | |
13 | * violation of, any terms of an Apple operating system software license | |
14 | * agreement. | |
15 | * | |
16 | * Please obtain a copy of the License at | |
17 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
18 | * file. | |
19 | * | |
20 | * The Original Code and all software distributed under the License are | |
21 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
22 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
23 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
24 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
25 | * Please see the License for the specific language governing rights and | |
26 | * limitations under the License. | |
27 | * | |
28 | * @APPLE_LICENSE_OSREFERENCE_HEADER_END@ | |
29 | */ | |
30 | /* | |
31 | * @OSF_COPYRIGHT@ | |
32 | */ | |
33 | /* | |
34 | * HISTORY | |
35 | * | |
36 | * Revision 1.1.1.1 1998/09/22 21:05:48 wsanchez | |
37 | * Import of Mac OS X kernel (~semeria) | |
38 | * | |
39 | * Revision 1.1.1.1 1998/03/07 02:26:09 wsanchez | |
40 | * Import of OSF Mach kernel (~mburg) | |
41 | * | |
42 | * Revision 1.1.11.2 1995/01/06 19:11:11 devrcs | |
43 | * mk6 CR668 - 1.3b26 merge | |
44 | * Add padding for alpha, make n_other unsigned, | |
45 | * fix erroneous def of N_FN. | |
46 | * [1994/10/14 03:40:03 dwm] | |
47 | * | |
48 | * Revision 1.1.11.1 1994/09/23 01:23:37 ezf | |
49 | * change marker to not FREE | |
50 | * [1994/09/22 21:11:49 ezf] | |
51 | * | |
52 | * Revision 1.1.4.3 1993/07/27 18:28:42 elliston | |
53 | * Add ANSI prototypes. CR #9523. | |
54 | * [1993/07/27 18:13:44 elliston] | |
55 | * | |
56 | * Revision 1.1.4.2 1993/06/02 23:13:34 jeffc | |
57 | * Added to OSF/1 R1.3 from NMK15.0. | |
58 | * [1993/06/02 20:58:08 jeffc] | |
59 | * | |
60 | * Revision 1.1 1992/09/30 02:24:29 robert | |
61 | * Initial revision | |
62 | * | |
63 | * $EndLog$ | |
64 | */ | |
65 | /* CMU_HIST */ | |
66 | /* | |
67 | * Revision 2.4 91/05/14 15:38:20 mrt | |
68 | * Correcting copyright | |
69 | * | |
70 | * Revision 2.3 91/02/05 17:07:42 mrt | |
71 | * Changed to new Mach copyright | |
72 | * [91/01/31 16:20:26 mrt] | |
73 | * | |
74 | * 11-Aug-88 David Golub (dbg) at Carnegie-Mellon University | |
75 | * Added n_un, n_strx definitions for kernel debugger (from | |
76 | * a.out.h). | |
77 | * | |
78 | */ | |
79 | /* CMU_ENDHIST */ | |
80 | /* | |
81 | * Mach Operating System | |
82 | * Copyright (c) 1991 Carnegie Mellon University | |
83 | * All Rights Reserved. | |
84 | * | |
85 | * Permission to use, copy, modify and distribute this software and its | |
86 | * documentation is hereby granted, provided that both the copyright | |
87 | * notice and this permission notice appear in all copies of the | |
88 | * software, derivative works or modified versions, and any portions | |
89 | * thereof, and that both notices appear in supporting documentation. | |
90 | * | |
91 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" | |
92 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR | |
93 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. | |
94 | * | |
95 | * Carnegie Mellon requests users of this software to return to | |
96 | * | |
97 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU | |
98 | * School of Computer Science | |
99 | * Carnegie Mellon University | |
100 | * Pittsburgh PA 15213-3890 | |
101 | * | |
102 | * any improvements or extensions that they make and grant Carnegie Mellon | |
103 | * the rights to redistribute these changes. | |
104 | */ | |
105 | /* | |
106 | */ | |
107 | /* | |
108 | * nlist.h - symbol table entry structure for an a.out file | |
109 | * derived from FSF's a.out.gnu.h | |
110 | * | |
111 | */ | |
112 | ||
113 | #ifndef _DDB_NLIST_H_ | |
114 | #define _DDB_NLIST_H_ | |
115 | ||
116 | struct nlist { | |
117 | union n_un { | |
118 | char *n_name; /* symbol name */ | |
119 | long n_strx; /* index into file string table */ | |
120 | } n_un; | |
121 | unsigned char n_type; /* type flag, i.e. N_TEXT etc; see below */ | |
122 | unsigned char n_other; /* unused */ | |
123 | short n_desc; /* see <stab.h> */ | |
124 | #if defined(__alpha) | |
125 | int n_pad; /* alignment, used to carry framesize info */ | |
126 | #endif | |
127 | vm_offset_t n_value; /* value of this symbol (or sdb offset) */ | |
128 | }; | |
129 | ||
130 | /* | |
131 | * Simple values for n_type. | |
132 | */ | |
133 | #define N_UNDF 0 /* undefined */ | |
134 | #define N_ABS 2 /* absolute */ | |
135 | #define N_TEXT 4 /* text */ | |
136 | #define N_DATA 6 /* data */ | |
137 | #define N_BSS 8 /* bss */ | |
138 | #define N_FN 0x1e /* file name symbol */ | |
139 | #define N_EXT 1 /* external bit, or'ed in */ | |
140 | #define N_TYPE 0x1e /* mask for all the type bits */ | |
141 | #define N_STAB 0xe0 /* if any of these bits set, a SDB entry */ | |
142 | ||
143 | #endif /* !_DDB_NLIST_H_ */ |