xref: /titanic_44/usr/src/tools/ctf/dwarf/common/dwarf_incl.h (revision 07dc1947c362e187fb955d283b692f8769dd5def)
149d3bc91SRichard Lowe /*
249d3bc91SRichard Lowe 
3*07dc1947SRichard Lowe   Copyright (C) 2000, 2002, 2004 Silicon Graphics, Inc.  All Rights Reserved.
4*07dc1947SRichard Lowe   Portions Copyright 2008-2010 David Anderson. All rights reserved.
549d3bc91SRichard Lowe 
649d3bc91SRichard Lowe   This program is free software; you can redistribute it and/or modify it
749d3bc91SRichard Lowe   under the terms of version 2.1 of the GNU Lesser General Public License
849d3bc91SRichard Lowe   as published by the Free Software Foundation.
949d3bc91SRichard Lowe 
1049d3bc91SRichard Lowe   This program is distributed in the hope that it would be useful, but
1149d3bc91SRichard Lowe   WITHOUT ANY WARRANTY; without even the implied warranty of
1249d3bc91SRichard Lowe   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1349d3bc91SRichard Lowe 
1449d3bc91SRichard Lowe   Further, this software is distributed without any warranty that it is
1549d3bc91SRichard Lowe   free of the rightful claim of any third person regarding infringement
1649d3bc91SRichard Lowe   or the like.  Any license provided herein, whether implied or
1749d3bc91SRichard Lowe   otherwise, applies only to this software file.  Patent licenses, if
1849d3bc91SRichard Lowe   any, provided herein do not apply to combinations of this program with
1949d3bc91SRichard Lowe   other software, or any other product whatsoever.
2049d3bc91SRichard Lowe 
2149d3bc91SRichard Lowe   You should have received a copy of the GNU Lesser General Public
2249d3bc91SRichard Lowe   License along with this program; if not, write the Free Software
23*07dc1947SRichard Lowe   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
2449d3bc91SRichard Lowe   USA.
2549d3bc91SRichard Lowe 
26*07dc1947SRichard Lowe   Contact information:  Silicon Graphics, Inc., 1500 Crittenden Lane,
2749d3bc91SRichard Lowe   Mountain View, CA 94043, or:
2849d3bc91SRichard Lowe 
2949d3bc91SRichard Lowe   http://www.sgi.com
3049d3bc91SRichard Lowe 
3149d3bc91SRichard Lowe   For further information regarding this notice, see:
3249d3bc91SRichard Lowe 
3349d3bc91SRichard Lowe   http://oss.sgi.com/projects/GenInfo/NoticeExplan
3449d3bc91SRichard Lowe 
3549d3bc91SRichard Lowe */
3649d3bc91SRichard Lowe 
3749d3bc91SRichard Lowe 
3849d3bc91SRichard Lowe 
3949d3bc91SRichard Lowe #ifndef DWARF_INCL_H
4049d3bc91SRichard Lowe #define DWARF_INCL_H
41*07dc1947SRichard Lowe #if (!defined(HAVE_RAW_LIBELF_OK) && defined(HAVE_LIBELF_OFF64_OK) )
42*07dc1947SRichard Lowe /* At a certain point libelf.h requires _GNU_SOURCE.
43*07dc1947SRichard Lowe    here we assume the criteria in configure determine that
44*07dc1947SRichard Lowe    usefully.
45*07dc1947SRichard Lowe */
46*07dc1947SRichard Lowe #define _GNU_SOURCE 1
47*07dc1947SRichard Lowe #endif
48*07dc1947SRichard Lowe 
4949d3bc91SRichard Lowe 
5049d3bc91SRichard Lowe #include "libdwarfdefs.h"
5149d3bc91SRichard Lowe #include <string.h>
5249d3bc91SRichard Lowe 
5349d3bc91SRichard Lowe #ifdef HAVE_ELF_H
5449d3bc91SRichard Lowe #include <elf.h>
5549d3bc91SRichard Lowe #endif
5649d3bc91SRichard Lowe 
5749d3bc91SRichard Lowe #include <limits.h>
5849d3bc91SRichard Lowe #include <dwarf.h>
59*07dc1947SRichard Lowe #include <libdwarf.h>
6049d3bc91SRichard Lowe 
6149d3bc91SRichard Lowe #include "dwarf_base_types.h"
6249d3bc91SRichard Lowe #include "dwarf_alloc.h"
6349d3bc91SRichard Lowe #include "dwarf_opaque.h"
6449d3bc91SRichard Lowe #include "dwarf_error.h"
6549d3bc91SRichard Lowe #include "dwarf_util.h"
6649d3bc91SRichard Lowe #endif /* DWARF_INCL_H */
67