5.2 released.
[deliverable/binutils-gdb.git] / 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)
38
39 /* It is unknown which, if any, SVR4 assemblers do not accept dollar signs
40 in identifiers. The default in G++ is to use dots instead, for all SVR4
41 systems, so we make that our default also. FIXME: There should be some
42 way to get G++ to tell us what CPLUS_MARKER it is using, perhaps by
43 stashing it in the debugging information as part of the name of an
44 invented symbol ("gcc_cplus_marker$" for example). */
45
46 #undef CPLUS_MARKER
47 #define CPLUS_MARKER '.'
This page took 0.031491 seconds and 4 git commands to generate.