Fix whitespace problem in my most recent entry.
[deliverable/binutils-gdb.git] / gdb / config / rs6000 / tm-rs6000.h
CommitLineData
c906108c
SS
1/* Parameters for target execution on an RS6000, for GDB, the GNU debugger.
2 Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1997
3 Free Software Foundation, Inc.
4 Contributed by IBM Corporation.
5
c5aa993b 6 This file is part of GDB.
c906108c 7
c5aa993b
JM
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.
c906108c 12
c5aa993b
JM
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.
c906108c 17
c5aa993b
JM
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. */
c906108c 22
7a78ae4e 23#define GDB_MULTI_ARCH 1
c906108c
SS
24
25/* Minimum possible text address in AIX */
26
27#define TEXT_SEGMENT_BASE 0x10000000
28
c906108c
SS
29/* AIX's assembler doesn't grok dollar signs in identifiers.
30 So we use dots instead. This item must be coordinated with G++. */
31#undef CPLUS_MARKER
32#define CPLUS_MARKER '.'
33
c906108c
SS
34/* If PC is in some function-call trampoline code, return the PC
35 where the function itself actually starts. If not, return NULL. */
36
7a78ae4e
ND
37#define SKIP_TRAMPOLINE_CODE(pc) rs6000_skip_trampoline_code (pc)
38extern CORE_ADDR rs6000_skip_trampoline_code (CORE_ADDR);
c906108c
SS
39
40/* Number of trap signals we need to skip over, once the inferior process
41 starts running. */
42
43#define START_INFERIOR_TRAPS_EXPECTED 2
44
45/* AIX has a couple of strange returns from wait(). */
46
47#define CHILD_SPECIAL_WAITSTATUS(ourstatus, hoststatus) ( \
48 /* "stop after load" status. */ \
49 (hoststatus) == 0x57c ? (ourstatus)->kind = TARGET_WAITKIND_LOADED, 1 : \
50 \
51 /* signal 0. I have no idea why wait(2) returns with this status word. */ \
52 /* It looks harmless. */ \
53 (hoststatus) == 0x7f ? (ourstatus)->kind = TARGET_WAITKIND_SPURIOUS, 1 : \
54 \
55 /* A normal waitstatus. Let the usual macros deal with it. */ \
56 0)
57
58/* In xcoff, we cannot process line numbers when we see them. This is
59 mainly because we don't know the boundaries of the include files. So,
60 we postpone that, and then enter and sort(?) the whole line table at
61 once, when we are closing the current symbol table in end_symtab(). */
62
63#define PROCESS_LINENUMBER_HOOK() aix_process_linenos ()
a14ed312 64extern void aix_process_linenos (void);
c5aa993b 65
c906108c
SS
66/* Register numbers of various important registers.
67 Note that some of these values are "real" register numbers,
68 and correspond to the general registers of the machine,
69 and some are "phony" register numbers which are too large
70 to be actual register numbers as far as the user is concerned
71 but do serve to get the desired values when passed to read_register. */
72
c906108c 73#define FP0_REGNUM 32 /* Floating point register 0 */
c5aa993b 74#define FPLAST_REGNUM 63 /* Last floating point register */
c906108c 75
c906108c
SS
76/* These #defines are used to parse core files and talk to ptrace, so they
77 must remain fixed. */
78#define FIRST_UISA_SP_REGNUM 64 /* first special register number */
79#define LAST_UISA_SP_REGNUM 70 /* last special register number */
80
c906108c
SS
81/* convert a dbx stab register number (from `r' declaration) to a gdb REGNUM */
82
83#define STAB_REG_TO_REGNUM(value) (value)
84
c906108c
SS
85/* Define other aspects of the stack frame. */
86
c906108c
SS
87#define INIT_FRAME_PC_FIRST(fromleaf, prev) \
88 prev->pc = (fromleaf ? SAVED_PC_AFTER_CALL (prev->next) : \
89 prev->next ? FRAME_SAVED_PC (prev->next) : read_pc ());
c5aa993b 90#define INIT_FRAME_PC(fromleaf, prev) /* nothing */
c906108c 91
fe794dc6
ND
92/* Default offset from SP where the LR is stored */
93#define DEFAULT_LR_SAVE 8
94
c906108c
SS
95/* Flag for machine-specific stuff in shared files. FIXME */
96#define IBM6000_TARGET
97
98/* RS6000/AIX does not support PT_STEP. Has to be simulated. */
99
100#define SOFTWARE_SINGLE_STEP_P 1
a14ed312 101extern void rs6000_software_single_step (unsigned int, int);
c906108c
SS
102#define SOFTWARE_SINGLE_STEP(sig,bp_p) rs6000_software_single_step (sig, bp_p)
103
7a78ae4e
ND
104/* Notice when a new child process is started. */
105
106#define TARGET_CREATE_INFERIOR_HOOK rs6000_create_inferior
107extern void rs6000_create_inferior (int);
108
109/* Hook in rs6000-tdep.c for determining the TOC address when
110 calling functions in the inferior. */
111
112extern CORE_ADDR (*rs6000_find_toc_address_hook) (CORE_ADDR);
c906108c 113
7a78ae4e
ND
114/* Hook in rs6000-tdep.c to set the current architecture when starting a
115 child process. */
c906108c 116
7a78ae4e 117extern void (*rs6000_set_host_arch_hook) (int);
This page took 0.082644 seconds and 4 git commands to generate.