1130812Smarcel/* Target machine sub-description for SunOS version 4.
2130812Smarcel   This is included by other tm-*.h files to specify SunOS-specific stuff.
3130812Smarcel   Copyright 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
4130812Smarcel
5130812Smarcel   This file is part of GDB.
6130812Smarcel
7130812Smarcel   This program is free software; you can redistribute it and/or modify
8130812Smarcel   it under the terms of the GNU General Public License as published by
9130812Smarcel   the Free Software Foundation; either version 2 of the License, or
10130812Smarcel   (at your option) any later version.
11130812Smarcel
12130812Smarcel   This program is distributed in the hope that it will be useful,
13130812Smarcel   but WITHOUT ANY WARRANTY; without even the implied warranty of
14130812Smarcel   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15130812Smarcel   GNU General Public License for more details.
16130812Smarcel
17130812Smarcel   You should have received a copy of the GNU General Public License
18130812Smarcel   along with this program; if not, write to the Free Software
19130812Smarcel   Foundation, Inc., 59 Temple Place - Suite 330,
20130812Smarcel   Boston, MA 02111-1307, USA.  */
21130812Smarcel
22130812Smarcel#include "solib.h"		/* Support for shared libraries. */
23130812Smarcel
24130812Smarcel/* Return non-zero if we are in a shared library trampoline code stub. */
25130812Smarcel
26130812Smarcel#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
27130812Smarcel  lookup_solib_trampoline_symbol_by_pc (pc)
28130812Smarcel
29130812Smarcel/* If PC is in a shared library trampoline code, return the PC
30130812Smarcel   where the function itself actually starts.  If not, return 0.  */
31130812Smarcel
32130812Smarcel#define SKIP_TRAMPOLINE_CODE(pc)  find_solib_trampoline_target (pc)
33