add include/sys/efi.h
[unleashed.git] / include / linenum.h
blobdd117723b57b5caf3596ce593885e442bbdb898a
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
26 #ifndef _LINENUM_H
27 #define _LINENUM_H
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
34 * There is one line number entry for every
35 * "breakpointable" source line in a section.
36 * Line numbers are grouped on a per function
37 * basis; the first entry in a function grouping
38 * will have l_lnno = 0 and in place of physical
39 * address will be the symbol table index of
40 * the function name.
42 struct lineno
44 union
46 long l_symndx; /* sym. table index of function name */
47 /* iff l_lnno == 0 */
48 long l_paddr; /* (physical) address of line number */
49 } l_addr;
50 unsigned short l_lnno; /* line number */
53 #define LINENO struct lineno
54 #define LINESZ 6 /* sizeof(LINENO) */
56 #ifdef __cplusplus
58 #endif
60 #endif /* _LINENUM_H */