xref: /titanic_51/usr/src/head/linenum.h (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
1 /*
2  * CDDL HEADER START
3  *
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.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1988 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ifndef _LINENUM_H
27 #define	_LINENUM_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.5	*/
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 /*
36  *  There is one line number entry for every
37  *  "breakpointable" source line in a section.
38  *  Line numbers are grouped on a per function
39  *  basis; the first entry in a function grouping
40  *  will have l_lnno = 0 and in place of physical
41  *  address will be the symbol table index of
42  *  the function name.
43  */
44 struct lineno
45 {
46 	union
47 	{
48 		long	l_symndx;	/* sym. table index of function name */
49 					/* iff l_lnno == 0 */
50 		long	l_paddr;	/* (physical) address of line number */
51 	}		l_addr;
52 	unsigned short	l_lnno;		/* line number */
53 };
54 
55 #define	LINENO	struct lineno
56 #define	LINESZ	6	/* sizeof(LINENO) */
57 
58 #ifdef	__cplusplus
59 }
60 #endif
61 
62 #endif	/* _LINENUM_H */
63