]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/gdb/gdb/config/tm-sysv4.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / gdb / gdb / config / tm-sysv4.h
1 /* Macro definitions for GDB on all SVR4 target systems.
2    Copyright 1991, 1992, 1993, 1994, 1996, 1997, 2000
3    Free Software Foundation, Inc.
4    Written by Fred Fish at Cygnus Support (fnf@cygnus.com).
5
6    This file is part of GDB.
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 59 Temple Place - Suite 330,
21    Boston, MA 02111-1307, USA.  */
22
23 /* For SVR4 shared libraries, each call to a library routine goes through
24    a small piece of trampoline code in the ".plt" section.
25    The horribly ugly wait_for_inferior() routine uses this macro to detect
26    when we have stepped into one of these fragments.
27    We do not use lookup_solib_trampoline_symbol_by_pc, because
28    we cannot always find the shared library trampoline symbols
29    (e.g. on Irix5).  */
30
31 #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) in_plt_section((pc), (name))
32 extern int in_plt_section (CORE_ADDR, char *);
33
34 /* If PC is in a shared library trampoline code, return the PC
35    where the function itself actually starts.  If not, return 0.  */
36
37 #define SKIP_TRAMPOLINE_CODE(pc)  find_solib_trampoline_target (pc)