* config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
[deliverable/binutils-gdb.git] / gdb / config / rs6000 / tm-rs6000.h
1 /* Parameters for target execution on an RS6000, for GDB, the GNU debugger.
2 Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
3 1998, 1999, 2000
4 Free Software Foundation, Inc.
5 Contributed by IBM Corporation.
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
23
24 #define GDB_MULTI_ARCH 1
25
26 /* Minimum possible text address in AIX */
27
28 #define TEXT_SEGMENT_BASE 0x10000000
29
30 /* AIX's assembler doesn't grok dollar signs in identifiers.
31 So we use dots instead. This item must be coordinated with G++. */
32 #undef CPLUS_MARKER
33 #define CPLUS_MARKER '.'
34
35 /* Return whether PC in function NAME is in code that should be skipped when
36 single-stepping. */
37
38 #define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) \
39 rs6000_in_solib_return_trampoline (pc, name)
40 extern int rs6000_in_solib_return_trampoline (CORE_ADDR, char *);
41
42 /* If PC is in some function-call trampoline code, return the PC
43 where the function itself actually starts. If not, return NULL. */
44
45 #define SKIP_TRAMPOLINE_CODE(pc) rs6000_skip_trampoline_code (pc)
46 extern CORE_ADDR rs6000_skip_trampoline_code (CORE_ADDR);
47
48 /* Number of trap signals we need to skip over, once the inferior process
49 starts running. */
50
51 #define START_INFERIOR_TRAPS_EXPECTED 2
52
53 /* AIX has a couple of strange returns from wait(). */
54
55 #define CHILD_SPECIAL_WAITSTATUS(ourstatus, hoststatus) ( \
56 /* "stop after load" status. */ \
57 (hoststatus) == 0x57c ? (ourstatus)->kind = TARGET_WAITKIND_LOADED, 1 : \
58 \
59 /* signal 0. I have no idea why wait(2) returns with this status word. */ \
60 /* It looks harmless. */ \
61 (hoststatus) == 0x7f ? (ourstatus)->kind = TARGET_WAITKIND_SPURIOUS, 1 : \
62 \
63 /* A normal waitstatus. Let the usual macros deal with it. */ \
64 0)
65
66 /* In xcoff, we cannot process line numbers when we see them. This is
67 mainly because we don't know the boundaries of the include files. So,
68 we postpone that, and then enter and sort(?) the whole line table at
69 once, when we are closing the current symbol table in end_symtab(). */
70
71 #define PROCESS_LINENUMBER_HOOK() aix_process_linenos ()
72 extern void aix_process_linenos (void);
73
74 /* Register numbers of various important registers.
75 Note that some of these values are "real" register numbers,
76 and correspond to the general registers of the machine,
77 and some are "phony" register numbers which are too large
78 to be actual register numbers as far as the user is concerned
79 but do serve to get the desired values when passed to read_register. */
80
81 #define FP0_REGNUM 32 /* Floating point register 0 */
82 #define FPLAST_REGNUM 63 /* Last floating point register */
83
84 /* These #defines are used to parse core files and talk to ptrace, so they
85 must remain fixed. */
86 #define FIRST_UISA_SP_REGNUM 64 /* first special register number */
87 #define LAST_UISA_SP_REGNUM 70 /* last special register number */
88
89 /* convert a dbx stab register number (from `r' declaration) to a gdb REGNUM */
90
91 #define STAB_REG_TO_REGNUM(value) (value)
92
93 /* Define other aspects of the stack frame. */
94
95 #define INIT_FRAME_PC_FIRST(fromleaf, prev) \
96 prev->pc = (fromleaf ? SAVED_PC_AFTER_CALL (prev->next) : \
97 prev->next ? FRAME_SAVED_PC (prev->next) : read_pc ());
98 #define INIT_FRAME_PC(fromleaf, prev) /* nothing */
99
100 /* Default offset from SP where the LR is stored */
101 #define DEFAULT_LR_SAVE 8
102
103 /* Flag for machine-specific stuff in shared files. FIXME */
104 #define IBM6000_TARGET
105
106 /* RS6000/AIX does not support PT_STEP. Has to be simulated. */
107
108 #define SOFTWARE_SINGLE_STEP_P() 1
109 extern void rs6000_software_single_step (enum target_signal, int);
110 #define SOFTWARE_SINGLE_STEP(sig,bp_p) rs6000_software_single_step (sig, bp_p)
111
112 /* Notice when a new child process is started. */
113
114 #define TARGET_CREATE_INFERIOR_HOOK rs6000_create_inferior
115 extern void rs6000_create_inferior (int);
116
117 /* Hook in rs6000-tdep.c for determining the TOC address when
118 calling functions in the inferior. */
119
120 extern CORE_ADDR (*rs6000_find_toc_address_hook) (CORE_ADDR);
121
122 /* Hook in rs6000-tdep.c to set the current architecture when starting a
123 child process. */
124
125 extern void (*rs6000_set_host_arch_hook) (int);
This page took 0.032311 seconds and 4 git commands to generate.