07395a4cff9be42487f2e211de5dd7eebbec902f
1 /* Target-dependent code for GDB, the GNU debugger.
2 Copyright 2000, 2001, 2002, 2003
3 Free Software Foundation, Inc.
5 This file is part of GDB.
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.
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.
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. */
31 /* From ppc-linux-tdep.c... */
32 CORE_ADDR
ppc_linux_frame_saved_pc (struct frame_info
*fi
);
33 void ppc_linux_init_extra_frame_info (int fromleaf
, struct frame_info
*);
34 int ppc_linux_frameless_function_invocation (struct frame_info
*);
35 void ppc_linux_frame_init_saved_regs (struct frame_info
*);
36 CORE_ADDR
ppc_linux_frame_chain (struct frame_info
*);
37 int ppc_sysv_abi_use_struct_convention (int, struct type
*);
38 int ppc_sysv_abi_broken_use_struct_convention (int, struct type
*);
39 CORE_ADDR
ppc_sysv_abi_push_dummy_call (struct gdbarch
*gdbarch
,
41 struct regcache
*regcache
,
42 CORE_ADDR bp_addr
, int nargs
,
43 struct value
**args
, CORE_ADDR sp
,
45 CORE_ADDR struct_addr
);
46 int ppc_linux_memory_remove_breakpoint (CORE_ADDR addr
, char *contents_cache
);
47 struct link_map_offsets
*ppc_linux_svr4_fetch_link_map_offsets (void);
48 void ppc_linux_supply_gregset (char *buf
);
49 void ppc_linux_supply_fpregset (char *buf
);
51 int ppc64_sysv_abi_use_struct_convention (int gcc_p
, struct type
*value_type
);
52 void ppc64_sysv_abi_extract_return_value (struct type
*valtype
,
53 struct regcache
*regbuf
,
55 void ppc64_sysv_abi_store_return_value (struct type
*valtype
,
56 struct regcache
*regbuf
,
60 /* From rs6000-tdep.c... */
61 CORE_ADDR
rs6000_frame_saved_pc (struct frame_info
*fi
);
62 void rs6000_init_extra_frame_info (int fromleaf
, struct frame_info
*);
63 int rs6000_frameless_function_invocation (struct frame_info
*);
64 void rs6000_frame_init_saved_regs (struct frame_info
*);
65 CORE_ADDR
rs6000_frame_chain (struct frame_info
*);
66 int altivec_register_p (int regno
);
69 /* Return non-zero when the architecture has an FPU (or at least when
70 the ABI is using the FPU). */
71 int ppc_floating_point_unit_p (struct gdbarch
*gdbarch
);
73 /* Private data that this module attaches to struct gdbarch. */
77 int wordsize
; /* size in bytes of fixed-point word */
78 int *regoff
; /* byte offsets in register arrays */
79 const struct reg
*regs
; /* from current variant */
80 int ppc_gp0_regnum
; /* GPR register 0 */
81 int ppc_gplast_regnum
; /* GPR register 31 */
82 int ppc_toc_regnum
; /* TOC register */
83 int ppc_ps_regnum
; /* Processor (or machine) status (%msr) */
84 int ppc_cr_regnum
; /* Condition register */
85 int ppc_lr_regnum
; /* Link register */
86 int ppc_ctr_regnum
; /* Count register */
87 int ppc_xer_regnum
; /* Integer exception register */
88 int ppc_fpscr_regnum
; /* Floating point status and condition
90 int ppc_mq_regnum
; /* Multiply/Divide extension register */
91 int ppc_vr0_regnum
; /* First AltiVec register */
92 int ppc_vrsave_regnum
; /* Last AltiVec register */
93 int ppc_ev0_regnum
; /* First ev register */
94 int ppc_ev31_regnum
; /* Last ev register */
95 int lr_frame_offset
; /* Offset to ABI specific location where
96 link register is saved. */