]>
Commit | Line | Data |
---|---|---|
9aa1e687 KB |
1 | /* Target-dependent code for GDB, the GNU debugger. |
2 | Copyright 2000 | |
3 | Free Software Foundation, Inc. | |
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., 59 Temple Place - Suite 330, | |
20 | Boston, MA 02111-1307, USA. */ | |
21 | ||
3a1c5313 AC |
22 | #ifndef PPC_TDEP_H |
23 | #define PPC_TDEP_H | |
24 | ||
25 | struct frame_info; | |
26 | struct value; | |
27 | ||
9aa1e687 KB |
28 | /* From ppc-linux-tdep.c... */ |
29 | CORE_ADDR ppc_linux_frame_saved_pc (struct frame_info *fi); | |
30 | void ppc_linux_init_extra_frame_info (int fromleaf, struct frame_info *); | |
31 | int ppc_linux_frameless_function_invocation (struct frame_info *); | |
32 | void ppc_linux_frame_init_saved_regs (struct frame_info *); | |
33 | CORE_ADDR ppc_linux_frame_chain (struct frame_info *); | |
3a1c5313 | 34 | CORE_ADDR ppc_sysv_abi_push_arguments (int, struct value **, CORE_ADDR, int, |
9aa1e687 KB |
35 | CORE_ADDR); |
36 | int ppc_linux_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache); | |
37 | ||
38 | ||
39 | /* From rs6000-tdep.c... */ | |
40 | CORE_ADDR rs6000_frame_saved_pc (struct frame_info *fi); | |
41 | void rs6000_init_extra_frame_info (int fromleaf, struct frame_info *); | |
42 | int rs6000_frameless_function_invocation (struct frame_info *); | |
43 | void rs6000_frame_init_saved_regs (struct frame_info *); | |
44 | CORE_ADDR rs6000_frame_chain (struct frame_info *); | |
45 | ||
46 | /* Some important register numbers. */ | |
47 | ||
48 | #define PPC_GP0_REGNUM 0 /* GPR register 0 */ | |
49 | #define PPC_TOC_REGNUM 2 /* TOC register */ | |
50 | #define PPC_PS_REGNUM 65 /* Processor (or machine) status (%msr) */ | |
51 | #define PPC_CR_REGNUM 66 /* Condition register */ | |
52 | #define PPC_LR_REGNUM 67 /* Link register */ | |
53 | #define PPC_CTR_REGNUM 68 /* Count register */ | |
54 | #define PPC_XER_REGNUM 69 /* Integer exception register */ | |
55 | #define PPC_MQ_REGNUM 70 /* Multiply/Divide extension register */ | |
3a1c5313 AC |
56 | |
57 | #endif |