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).
6 This file is part of GDB.
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.
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.
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. */
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
31 #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) in_plt_section((pc), (name))
32 extern int in_plt_section (CORE_ADDR
, char *);
34 /* If PC is in a shared library trampoline code, return the PC
35 where the function itself actually starts. If not, return 0. */
37 #define SKIP_TRAMPOLINE_CODE(pc) find_solib_trampoline_target (pc)
This page took 0.030762 seconds and 4 git commands to generate.