stab.h revision 1539
11539Srgrimes/*-
21539Srgrimes * Copyright (c) 1991, 1993
31539Srgrimes *	The Regents of the University of California.  All rights reserved.
41539Srgrimes *
51539Srgrimes * Redistribution and use in source and binary forms, with or without
61539Srgrimes * modification, are permitted provided that the following conditions
71539Srgrimes * are met:
81539Srgrimes * 1. Redistributions of source code must retain the above copyright
91539Srgrimes *    notice, this list of conditions and the following disclaimer.
101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
111539Srgrimes *    notice, this list of conditions and the following disclaimer in the
121539Srgrimes *    documentation and/or other materials provided with the distribution.
131539Srgrimes * 3. All advertising materials mentioning features or use of this software
141539Srgrimes *    must display the following acknowledgement:
151539Srgrimes *	This product includes software developed by the University of
161539Srgrimes *	California, Berkeley and its contributors.
171539Srgrimes * 4. Neither the name of the University nor the names of its contributors
181539Srgrimes *    may be used to endorse or promote products derived from this software
191539Srgrimes *    without specific prior written permission.
201539Srgrimes *
211539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
221539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
231539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
241539Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
251539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
261539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
271539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
281539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
291539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
301539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
311539Srgrimes * SUCH DAMAGE.
321539Srgrimes *
331539Srgrimes *	@(#)stab.h	8.1 (Berkeley) 6/2/93
341539Srgrimes */
351539Srgrimes
361539Srgrimes/*
371539Srgrimes * The following are symbols used by various debuggers and by the Pascal
381539Srgrimes * compiler.  Each of them must have one (or more) of the bits defined by
391539Srgrimes * the N_STAB mask set.
401539Srgrimes */
411539Srgrimes
421539Srgrimes#define	N_GSYM		0x20	/* global symbol */
431539Srgrimes#define	N_FNAME		0x22	/* F77 function name */
441539Srgrimes#define	N_FUN		0x24	/* procedure name */
451539Srgrimes#define	N_STSYM		0x26	/* data segment variable */
461539Srgrimes#define	N_LCSYM		0x28	/* bss segment variable */
471539Srgrimes#define	N_MAIN		0x2a	/* main function name */
481539Srgrimes#define	N_PC		0x30	/* global Pascal symbol */
491539Srgrimes#define	N_RSYM		0x40	/* register variable */
501539Srgrimes#define	N_SLINE		0x44	/* text segment line number */
511539Srgrimes#define	N_DSLINE	0x46	/* data segment line number */
521539Srgrimes#define	N_BSLINE	0x48	/* bss segment line number */
531539Srgrimes#define	N_SSYM		0x60	/* structure/union element */
541539Srgrimes#define	N_SO		0x64	/* main source file name */
551539Srgrimes#define	N_LSYM		0x80	/* stack variable */
561539Srgrimes#define	N_BINCL		0x82	/* include file beginning */
571539Srgrimes#define	N_SOL		0x84	/* included source file name */
581539Srgrimes#define	N_PSYM		0xa0	/* parameter variable */
591539Srgrimes#define	N_EINCL		0xa2	/* include file end */
601539Srgrimes#define	N_ENTRY		0xa4	/* alternate entry point */
611539Srgrimes#define	N_LBRAC		0xc0	/* left bracket */
621539Srgrimes#define	N_EXCL		0xc2	/* deleted include file */
631539Srgrimes#define	N_RBRAC		0xe0	/* right bracket */
641539Srgrimes#define	N_BCOMM		0xe2	/* begin common */
651539Srgrimes#define	N_ECOMM		0xe4	/* end common */
661539Srgrimes#define	N_ECOML		0xe8	/* end common (local name) */
671539Srgrimes#define	N_LENG		0xfe	/* length of preceding entry */
68