Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Macro definitions for GDB on all SVR4 target systems. |
2 | Copyright 1991, 1992, 1993, 1994 Free Software Foundation, Inc. | |
3 | Written by Fred Fish at Cygnus Support (fnf@cygnus.com). | |
4 | ||
c5aa993b | 5 | This file is part of GDB. |
c906108c | 6 | |
c5aa993b JM |
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. | |
c906108c | 11 | |
c5aa993b JM |
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. | |
c906108c | 16 | |
c5aa993b JM |
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., 59 Temple Place - Suite 330, | |
20 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
21 | |
22 | /* For SVR4 shared libraries, each call to a library routine goes through | |
23 | a small piece of trampoline code in the ".plt" section. | |
24 | The horribly ugly wait_for_inferior() routine uses this macro to detect | |
25 | when we have stepped into one of these fragments. | |
26 | We do not use lookup_solib_trampoline_symbol_by_pc, because | |
27 | we cannot always find the shared library trampoline symbols | |
28 | (e.g. on Irix5). */ | |
29 | ||
30 | #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) in_plt_section((pc), (name)) | |
a14ed312 | 31 | extern int in_plt_section (CORE_ADDR, char *); |
c906108c SS |
32 | |
33 | /* If PC is in a shared library trampoline code, return the PC | |
34 | where the function itself actually starts. If not, return 0. */ | |
35 | ||
36 | #define SKIP_TRAMPOLINE_CODE(pc) find_solib_trampoline_target (pc) | |
37 | ||
38 | /* It is unknown which, if any, SVR4 assemblers do not accept dollar signs | |
39 | in identifiers. The default in G++ is to use dots instead, for all SVR4 | |
40 | systems, so we make that our default also. FIXME: There should be some | |
41 | way to get G++ to tell us what CPLUS_MARKER it is using, perhaps by | |
42 | stashing it in the debugging information as part of the name of an | |
43 | invented symbol ("gcc_cplus_marker$" for example). */ | |
44 | ||
45 | #undef CPLUS_MARKER | |
46 | #define CPLUS_MARKER '.' |