1 /* Target-dependent code for GDB, the GNU debugger.
3 Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation,
6 This file is part of GDB.
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.
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.
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. */
32 /* From ppc-linux-tdep.c... */
33 enum return_value_convention
ppc_sysv_abi_return_value (struct gdbarch
*gdbarch
,
35 struct regcache
*regcache
,
37 const void *writebuf
);
38 enum return_value_convention
ppc_sysv_abi_broken_return_value (struct gdbarch
*gdbarch
,
40 struct regcache
*regcache
,
42 const void *writebuf
);
43 CORE_ADDR
ppc_sysv_abi_push_dummy_call (struct gdbarch
*gdbarch
,
45 struct regcache
*regcache
,
46 CORE_ADDR bp_addr
, int nargs
,
47 struct value
**args
, CORE_ADDR sp
,
49 CORE_ADDR struct_addr
);
50 CORE_ADDR
ppc64_sysv_abi_push_dummy_call (struct gdbarch
*gdbarch
,
52 struct regcache
*regcache
,
53 CORE_ADDR bp_addr
, int nargs
,
54 struct value
**args
, CORE_ADDR sp
,
56 CORE_ADDR struct_addr
);
57 CORE_ADDR
ppc64_sysv_abi_adjust_breakpoint_address (struct gdbarch
*gdbarch
,
59 int ppc_linux_memory_remove_breakpoint (CORE_ADDR addr
, char *contents_cache
);
60 struct link_map_offsets
*ppc_linux_svr4_fetch_link_map_offsets (void);
61 void ppc_linux_supply_gregset (struct regcache
*regcache
,
62 int regnum
, const void *gregs
, size_t size
,
64 void ppc_linux_supply_fpregset (const struct regset
*regset
,
65 struct regcache
*regcache
,
66 int regnum
, const void *gregs
, size_t size
);
68 enum return_value_convention
ppc64_sysv_abi_return_value (struct gdbarch
*gdbarch
,
70 struct regcache
*regcache
,
72 const void *writebuf
);
74 /* From rs6000-tdep.c... */
75 int altivec_register_p (int regno
);
78 /* Return non-zero when the architecture has an FPU (or at least when
79 the ABI is using the FPU). */
80 int ppc_floating_point_unit_p (struct gdbarch
*gdbarch
);
82 /* Private data that this module attaches to struct gdbarch. */
86 int wordsize
; /* size in bytes of fixed-point word */
87 int *regoff
; /* byte offsets in register arrays */
88 const struct reg
*regs
; /* from current variant */
89 int ppc_gp0_regnum
; /* GPR register 0 */
90 int ppc_gplast_regnum
; /* GPR register 31 */
91 int ppc_toc_regnum
; /* TOC register */
92 int ppc_ps_regnum
; /* Processor (or machine) status (%msr) */
93 int ppc_cr_regnum
; /* Condition register */
94 int ppc_lr_regnum
; /* Link register */
95 int ppc_ctr_regnum
; /* Count register */
96 int ppc_xer_regnum
; /* Integer exception register */
97 int ppc_fpscr_regnum
; /* Floating point status and condition
99 int ppc_mq_regnum
; /* Multiply/Divide extension register */
100 int ppc_vr0_regnum
; /* First AltiVec register */
101 int ppc_vrsave_regnum
; /* Last AltiVec register */
102 int ppc_ev0_regnum
; /* First ev register */
103 int ppc_ev31_regnum
; /* Last ev register */
104 int lr_frame_offset
; /* Offset to ABI specific location where
105 link register is saved. */
This page took 0.030411 seconds and 4 git commands to generate.