Commit | Line | Data |
---|---|---|
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 | ||
5 | This file is part of GDB. | |
6 | ||
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program; if not, write to the Free Software | |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
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 | 30 | extern 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 '.' |