Commit | Line | Data |
---|---|---|
c906108c | 1 | /* Parameters for target execution on an RS6000, for GDB, the GNU debugger. |
db11ed55 AC |
2 | |
3 | Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, | |
4 | 1997, 1998, 1999, 2000, 2004 Free Software Foundation, Inc. | |
5 | ||
c906108c SS |
6 | Contributed by IBM Corporation. |
7 | ||
c5aa993b | 8 | This file is part of GDB. |
c906108c | 9 | |
c5aa993b JM |
10 | This program is free software; you can redistribute it and/or modify |
11 | it under the terms of the GNU General Public License as published by | |
12 | the Free Software Foundation; either version 2 of the License, or | |
13 | (at your option) any later version. | |
c906108c | 14 | |
c5aa993b JM |
15 | This program is distributed in the hope that it will be useful, |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | GNU General Public License for more details. | |
c906108c | 19 | |
c5aa993b JM |
20 | You should have received a copy of the GNU General Public License |
21 | along with this program; if not, write to the Free Software | |
22 | Foundation, Inc., 59 Temple Place - Suite 330, | |
23 | Boston, MA 02111-1307, USA. */ | |
c906108c | 24 | |
da3331ec AC |
25 | struct frame_info; |
26 | ||
c906108c SS |
27 | /* Minimum possible text address in AIX */ |
28 | ||
29 | #define TEXT_SEGMENT_BASE 0x10000000 | |
30 | ||
977adac5 ND |
31 | /* Return whether PC in function NAME is in code that should be skipped when |
32 | single-stepping. */ | |
33 | ||
34 | #define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) \ | |
35 | rs6000_in_solib_return_trampoline (pc, name) | |
36 | extern int rs6000_in_solib_return_trampoline (CORE_ADDR, char *); | |
37 | ||
c906108c SS |
38 | /* If PC is in some function-call trampoline code, return the PC |
39 | where the function itself actually starts. If not, return NULL. */ | |
40 | ||
7a78ae4e ND |
41 | #define SKIP_TRAMPOLINE_CODE(pc) rs6000_skip_trampoline_code (pc) |
42 | extern CORE_ADDR rs6000_skip_trampoline_code (CORE_ADDR); | |
c906108c | 43 | |
c906108c SS |
44 | /* AIX has a couple of strange returns from wait(). */ |
45 | ||
46 | #define CHILD_SPECIAL_WAITSTATUS(ourstatus, hoststatus) ( \ | |
47 | /* "stop after load" status. */ \ | |
48 | (hoststatus) == 0x57c ? (ourstatus)->kind = TARGET_WAITKIND_LOADED, 1 : \ | |
49 | \ | |
50 | /* signal 0. I have no idea why wait(2) returns with this status word. */ \ | |
51 | /* It looks harmless. */ \ | |
52 | (hoststatus) == 0x7f ? (ourstatus)->kind = TARGET_WAITKIND_SPURIOUS, 1 : \ | |
53 | \ | |
54 | /* A normal waitstatus. Let the usual macros deal with it. */ \ | |
55 | 0) | |
56 | ||
57 | /* In xcoff, we cannot process line numbers when we see them. This is | |
58 | mainly because we don't know the boundaries of the include files. So, | |
59 | we postpone that, and then enter and sort(?) the whole line table at | |
60 | once, when we are closing the current symbol table in end_symtab(). */ | |
61 | ||
62 | #define PROCESS_LINENUMBER_HOOK() aix_process_linenos () | |
a14ed312 | 63 | extern void aix_process_linenos (void); |
c5aa993b | 64 | |
c906108c SS |
65 | /* Register numbers of various important registers. |
66 | Note that some of these values are "real" register numbers, | |
67 | and correspond to the general registers of the machine, | |
68 | and some are "phony" register numbers which are too large | |
69 | to be actual register numbers as far as the user is concerned | |
70 | but do serve to get the desired values when passed to read_register. */ | |
71 | ||
366f009f JB |
72 | /* Don't use this in code specific to the RS6000 and its descendants; |
73 | use tdep->ppc_fp0_regnum instead. FP0_REGNUM will be deprecated | |
74 | soon, but we still need to define it here for the uses in | |
75 | architecture-independent code. */ | |
c906108c | 76 | #define FP0_REGNUM 32 /* Floating point register 0 */ |
c906108c | 77 | |
7a78ae4e ND |
78 | /* Notice when a new child process is started. */ |
79 | ||
80 | #define TARGET_CREATE_INFERIOR_HOOK rs6000_create_inferior | |
81 | extern void rs6000_create_inferior (int); | |
82 | ||
83 | /* Hook in rs6000-tdep.c for determining the TOC address when | |
84 | calling functions in the inferior. */ | |
85 | ||
86 | extern CORE_ADDR (*rs6000_find_toc_address_hook) (CORE_ADDR); | |
c906108c | 87 | |
7a78ae4e ND |
88 | /* Hook in rs6000-tdep.c to set the current architecture when starting a |
89 | child process. */ | |
c906108c | 90 | |
7a78ae4e | 91 | extern void (*rs6000_set_host_arch_hook) (int); |
2d5177f3 KB |
92 | |
93 | /* We need solib.h for building cross debuggers. However, we don't want | |
94 | to clobber any special solib support required by native debuggers, so | |
95 | only include solib.h if SOLIB_ADD is not defined. */ | |
96 | #ifndef SOLIB_ADD | |
97 | #include "solib.h" | |
98 | #endif |