unwind-ia64.h revision 215841
1218885Sdim/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
2218885Sdim   Contributed by Andrew MacLeod  <amacleod@cygnus.com>
3218885Sdim                  Andrew Haley  <aph@cygnus.com>
4218885Sdim
5218885Sdim   This file is part of GCC.
6218885Sdim
7218885Sdim   GCC is free software; you can redistribute it and/or modify
8218885Sdim   it under the terms of the GNU General Public License as published by
9218885Sdim   the Free Software Foundation; either version 2, or (at your option)
10218885Sdim   any later version.
11218885Sdim
12218885Sdim   GCC is distributed in the hope that it will be useful,
13218885Sdim   but WITHOUT ANY WARRANTY; without even the implied warranty of
14218885Sdim   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15218885Sdim   GNU General Public License for more details.
16218885Sdim
17218885Sdim   You should have received a copy of the GNU General Public License
18218885Sdim   along with GCC; see the file COPYING.  If not, write to
19218885Sdim   the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20218885Sdim   Boston, MA 02110-1301, USA.  */
21218885Sdim
22218885Sdim#ifdef __FreeBSD__
23218885Sdim/* On FreeBSD, _Unwind_FindTableEntry is in libc, and must not be hidden here. */
24218885Sdim#define ATTRIBUTE_HIDDEN
25218885Sdim#else
26#define ATTRIBUTE_HIDDEN  __attribute__ ((__visibility__ ("hidden")))
27#endif
28
29struct unw_table_entry
30{
31  unsigned long start_offset;
32  unsigned long end_offset;
33  unsigned long info_offset;
34};
35
36extern struct unw_table_entry *
37_Unwind_FindTableEntry (void *pc, unsigned long *segment_base,
38			unsigned long *gp)
39			ATTRIBUTE_HIDDEN;
40