Update FSF address.
[deliverable/binutils-gdb.git] / gdb / config / tm-sysv4.h
CommitLineData
8256379d 1/* Macro definitions for GDB on all SVR4 target systems.
a9617bd5 2 Copyright 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
8256379d
FF
3 Written by Fred Fish at Cygnus Support (fnf@cygnus.com).
4
5This file is part of GDB.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
6c9638b4 19Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
8256379d 20
8256379d 21/* For SVR4 shared libraries, each call to a library routine goes through
94a5ac73 22 a small piece of trampoline code in the ".plt" section.
8256379d 23 The horribly ugly wait_for_inferior() routine uses this macro to detect
a9617bd5
PS
24 when we have stepped into one of these fragments.
25 We do not use lookup_solib_trampoline_symbol_by_pc, because
26 we cannot always find the shared library trampoline symbols
27 (e.g. on Irix5). */
8256379d 28
481faa25 29#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) in_plt_section((pc), (name))
94a5ac73 30extern int in_plt_section PARAMS ((CORE_ADDR, char *));
8256379d 31
a9617bd5
PS
32/* If PC is in a shared library trampoline code, return the PC
33 where the function itself actually starts. If not, return 0. */
34
35#define SKIP_TRAMPOLINE_CODE(pc) find_solib_trampoline_target (pc)
36
8256379d
FF
37/* It is unknown which, if any, SVR4 assemblers do not accept dollar signs
38 in identifiers. The default in G++ is to use dots instead, for all SVR4
39 systems, so we make that our default also. FIXME: There should be some
40 way to get G++ to tell us what CPLUS_MARKER it is using, perhaps by
41 stashing it in the debugging information as part of the name of an
42 invented symbol ("gcc_cplus_marker$" for example). */
43
44#undef CPLUS_MARKER
45#define CPLUS_MARKER '.'
This page took 0.129546 seconds and 4 git commands to generate.