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 | ||
7b112f9c JT |
25 | #include "osabi.h" |
26 | ||
3a1c5313 AC |
27 | struct frame_info; |
28 | struct value; | |
29 | ||
9aa1e687 KB |
30 | /* From ppc-linux-tdep.c... */ |
31 | CORE_ADDR ppc_linux_frame_saved_pc (struct frame_info *fi); | |
32 | void ppc_linux_init_extra_frame_info (int fromleaf, struct frame_info *); | |
33 | int ppc_linux_frameless_function_invocation (struct frame_info *); | |
34 | void ppc_linux_frame_init_saved_regs (struct frame_info *); | |
35 | CORE_ADDR ppc_linux_frame_chain (struct frame_info *); | |
8e0662df | 36 | int ppc_sysv_abi_use_struct_convention (int, struct type *); |
ace1378a | 37 | int ppc_sysv_abi_broken_use_struct_convention (int, struct type *); |
3a1c5313 | 38 | CORE_ADDR ppc_sysv_abi_push_arguments (int, struct value **, CORE_ADDR, int, |
9aa1e687 KB |
39 | CORE_ADDR); |
40 | int ppc_linux_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache); | |
6ded7999 | 41 | struct link_map_offsets *ppc_linux_svr4_fetch_link_map_offsets (void); |
2fda4977 DJ |
42 | void ppc_linux_supply_gregset (char *buf); |
43 | void ppc_linux_supply_fpregset (char *buf); | |
9aa1e687 KB |
44 | |
45 | ||
46 | /* From rs6000-tdep.c... */ | |
47 | CORE_ADDR rs6000_frame_saved_pc (struct frame_info *fi); | |
48 | void rs6000_init_extra_frame_info (int fromleaf, struct frame_info *); | |
49 | int rs6000_frameless_function_invocation (struct frame_info *); | |
50 | void rs6000_frame_init_saved_regs (struct frame_info *); | |
51 | CORE_ADDR rs6000_frame_chain (struct frame_info *); | |
1fcc0bb8 | 52 | int altivec_register_p (int regno); |
9aa1e687 | 53 | |
2188cbdd EZ |
54 | /* Private data that this module attaches to struct gdbarch. */ |
55 | ||
56 | struct gdbarch_tdep | |
57 | { | |
58 | int wordsize; /* size in bytes of fixed-point word */ | |
7b112f9c | 59 | enum gdb_osabi osabi; /* OS / ABI from ELF header */ |
2188cbdd EZ |
60 | int *regoff; /* byte offsets in register arrays */ |
61 | const struct reg *regs; /* from current variant */ | |
62 | int ppc_gp0_regnum; /* GPR register 0 */ | |
63 | int ppc_gplast_regnum; /* GPR register 31 */ | |
64 | int ppc_toc_regnum; /* TOC register */ | |
65 | int ppc_ps_regnum; /* Processor (or machine) status (%msr) */ | |
66 | int ppc_cr_regnum; /* Condition register */ | |
67 | int ppc_lr_regnum; /* Link register */ | |
68 | int ppc_ctr_regnum; /* Count register */ | |
69 | int ppc_xer_regnum; /* Integer exception register */ | |
e3f36dbd KB |
70 | int ppc_fpscr_regnum; /* Floating point status and condition |
71 | register */ | |
2188cbdd | 72 | int ppc_mq_regnum; /* Multiply/Divide extension register */ |
1fcc0bb8 EZ |
73 | int ppc_vr0_regnum; /* First AltiVec register */ |
74 | int ppc_vrsave_regnum; /* Last AltiVec register */ | |
c8001721 EZ |
75 | int ppc_ev0_regnum; /* First ev register */ |
76 | int ppc_ev31_regnum; /* Last ev register */ | |
a88376a3 KB |
77 | int lr_frame_offset; /* Offset to ABI specific location where |
78 | link register is saved. */ | |
2188cbdd | 79 | }; |
3a1c5313 AC |
80 | |
81 | #endif |