190075Sobrien/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
290075Sobrien   Contributed by Andrew MacLeod  <amacleod@cygnus.com>
390075Sobrien                  Andrew Haley  <aph@cygnus.com>
490075Sobrien
5132718Skan   This file is part of GCC.
690075Sobrien
7132718Skan   GCC is free software; you can redistribute it and/or modify
890075Sobrien   it under the terms of the GNU General Public License as published by
990075Sobrien   the Free Software Foundation; either version 2, or (at your option)
1090075Sobrien   any later version.
1190075Sobrien
12132718Skan   GCC is distributed in the hope that it will be useful,
1390075Sobrien   but WITHOUT ANY WARRANTY; without even the implied warranty of
1490075Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1590075Sobrien   GNU General Public License for more details.
1690075Sobrien
1790075Sobrien   You should have received a copy of the GNU General Public License
18132718Skan   along with GCC; see the file COPYING.  If not, write to
19169689Skan   the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20169689Skan   Boston, MA 02110-1301, USA.  */
2190075Sobrien
22215841Sdim#ifdef __FreeBSD__
23215841Sdim/* On FreeBSD, _Unwind_FindTableEntry is in libc, and must not be hidden here. */
24215841Sdim#define ATTRIBUTE_HIDDEN
25215841Sdim#else
26215841Sdim#define ATTRIBUTE_HIDDEN  __attribute__ ((__visibility__ ("hidden")))
27215841Sdim#endif
28215841Sdim
2990075Sobrienstruct unw_table_entry
3090075Sobrien{
3190075Sobrien  unsigned long start_offset;
3290075Sobrien  unsigned long end_offset;
3390075Sobrien  unsigned long info_offset;
3490075Sobrien};
3590075Sobrien
3690075Sobrienextern struct unw_table_entry *
3790075Sobrien_Unwind_FindTableEntry (void *pc, unsigned long *segment_base,
38146895Skan			unsigned long *gp)
39215841Sdim			ATTRIBUTE_HIDDEN;
40