* config/nm-sysv4.h: Include solib.h. Define SVR4_SHARED_LIBS.
[deliverable/binutils-gdb.git] / gdb / config / tm-sysv4.h
CommitLineData
8256379d
FF
1/* Macro definitions for GDB on all SVR4 target systems.
2 Copyright 1991, 1992, 1993 Free Software Foundation, Inc.
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
19Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
20
8256379d
FF
21/* For SVR4 shared libraries, each call to a library routine goes through
22 a small piece of trampoline code in the ".init" section. Although each
23 of these fragments is labeled with the name of the routine being called,
24 the gdb symbol reading code deliberately ignores them so it won't confuse
25 them with the real functions. It does however know about the label that
26 precedes all of the fragments, which is "_init". Thus when we lookup a
27 function that corresponds to a PC value which is in one of the trampoline
28 fragments, we'll appear to be in the function "_init". The following
29 macro will evaluate to nonzero when NAME is valid and matches "_init".
30 The horribly ugly wait_for_inferior() routine uses this macro to detect
31 when we have stepped into one of these fragments. */
32
33#define IN_SOLIB_TRAMPOLINE(pc,name) ((name) && (STREQ ("_init", name)))
34
35/* It is unknown which, if any, SVR4 assemblers do not accept dollar signs
36 in identifiers. The default in G++ is to use dots instead, for all SVR4
37 systems, so we make that our default also. FIXME: There should be some
38 way to get G++ to tell us what CPLUS_MARKER it is using, perhaps by
39 stashing it in the debugging information as part of the name of an
40 invented symbol ("gcc_cplus_marker$" for example). */
41
42#undef CPLUS_MARKER
43#define CPLUS_MARKER '.'
This page took 0.053472 seconds and 4 git commands to generate.