FreeBSD/Linux Kernel Cross Reference
sys/ddb/nlist.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: nlist.h,v $
29 * Revision 2.5 93/03/09 10:53:55 danner
30 * Made explicit padding for alpha, has its uses.
31 * Made n_other unsigned. Fixed erroneous def of N_FN.
32 * [93/02/21 af]
33 *
34 * Revision 2.4 91/05/14 15:38:20 mrt
35 * Correcting copyright
36 *
37 * Revision 2.3 91/02/05 17:07:42 mrt
38 * Changed to new Mach copyright
39 * [91/01/31 16:20:26 mrt]
40 *
41 * 11-Aug-88 David Golub (dbg) at Carnegie-Mellon University
42 * Added n_un, n_strx definitions for kernel debugger (from
43 * a.out.h).
44 *
45 */
46 /*
47 * nlist.h - symbol table entry structure for an a.out file
48 * derived from FSF's a.out.gnu.h
49 *
50 */
51
52 #ifndef _DDB_NLIST_H_
53 #define _DDB_NLIST_H_
54
55 struct nlist {
56 union n_un {
57 char *n_name; /* symbol name */
58 long n_strx; /* index into file string table */
59 } n_un;
60 unsigned char n_type; /* type flag, i.e. N_TEXT etc; see below */
61 unsigned char n_other; /* machdep uses */
62 short n_desc; /* see <stab.h> */
63 #if alpha
64 int n_pad; /* alignment, used to carry framesize info */
65 #endif
66 vm_offset_t n_value; /* value of this symbol (or sdb offset) */
67 };
68
69 /*
70 * Simple values for n_type.
71 */
72 #define N_UNDF 0 /* undefined */
73 #define N_ABS 2 /* absolute */
74 #define N_TEXT 4 /* text */
75 #define N_DATA 6 /* data */
76 #define N_BSS 8 /* bss */
77 #define N_FN 0x1f /* file name symbol */
78 #define N_EXT 1 /* external bit, or'ed in */
79 #define N_TYPE 0x1e /* mask for all the type bits */
80 #define N_STAB 0xe0 /* if any of these bits set, a SDB entry */
81
82
83 #endif /* _DDB_NLIST_H_ */
Cache object: 364034fd5583e73ea1fa5f6068264413
|