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