2007-06-18 Markus Deuling <deuling@de.ibm.com>
+ * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
+ gdbarch_deprecated_fp_regnum.
+ * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
+ * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
+ * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
+ * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
+ (comment).
+ * gdbarch.c, gdbarch.h: Regenerate.
+
+2007-06-18 Markus Deuling <deuling@de.ibm.com>
+
+ * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
+ gdbarch_extract_return_value.
+ * value.c (generic_use_struct_convention): Likewise (comment).
+ * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
+ * arch-utils.c (legacy_return_value): Likewise.
+ * arch-utils.h (legacy_return_value): Likewise (comment).
+ * gdbarch.sh (STORE_RETURN_VALUE): Replace by
+ gdbarch_store_return_value.
+ * stack.c (return_command): Likewise (comment).
+ * arch-utils.h (legacy_return_value): Likewise (comment).
+ * arch-utils.c (legacy_return_value): Likewise.
+ * gdbarch.c, gdbarch.h: Regenerate.
+
+2007-06-18 Markus Deuling <deuling@de.ibm.com>
+
* gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
gdbarch_deprecated_use_struct_convention.
* arch-utils.c (legacy_return_value): Likewise.
}
/* Legacy version of target_virtual_frame_pointer(). Assumes that
- there is an DEPRECATED_FP_REGNUM and that it is the same, cooked or
+ there is an gdbarch_deprecated_fp_regnum and that it is the same, cooked or
raw. */
void
register and an offset can determine this. I think it should
instead generate a byte code expression as that would work better
with things like Dwarf2's CFI. */
- if (DEPRECATED_FP_REGNUM >= 0
- && DEPRECATED_FP_REGNUM < gdbarch_num_regs (current_gdbarch))
- *frame_regnum = DEPRECATED_FP_REGNUM;
+ if (gdbarch_deprecated_fp_regnum (current_gdbarch) >= 0
+ && gdbarch_deprecated_fp_regnum (current_gdbarch)
+ < gdbarch_num_regs (current_gdbarch))
+ *frame_regnum = gdbarch_deprecated_fp_regnum (current_gdbarch);
else if (gdbarch_sp_regnum (current_gdbarch) >= 0
&& gdbarch_sp_regnum (current_gdbarch)
< gdbarch_num_regs (current_gdbarch))
int cannot_register_not (int regnum);
/* Legacy version of target_virtual_frame_pointer(). Assumes that
- there is an DEPRECATED_FP_REGNUM and that it is the same, cooked or
+ there is an gdbarch_deprecated_fp_regnum and that it is the same, cooked or
raw. */
extern gdbarch_virtual_frame_pointer_ftype legacy_virtual_frame_pointer;
fprintf_unfiltered (file,
"gdbarch_dump: decr_pc_after_break = 0x%s\n",
paddr_nz (current_gdbarch->decr_pc_after_break));
-#ifdef DEPRECATED_FP_REGNUM
- fprintf_unfiltered (file,
- "gdbarch_dump: DEPRECATED_FP_REGNUM # %s\n",
- XSTRING (DEPRECATED_FP_REGNUM));
-#endif
fprintf_unfiltered (file,
"gdbarch_dump: deprecated_fp_regnum = %s\n",
paddr_d (current_gdbarch->deprecated_fp_regnum));
extern void set_gdbarch_unwind_dummy_id (struct gdbarch *gdbarch, gdbarch_unwind_dummy_id_ftype *unwind_dummy_id);
/* Implement UNWIND_DUMMY_ID and PUSH_DUMMY_CALL, then delete
- DEPRECATED_FP_REGNUM. */
+ deprecated_fp_regnum. */
extern int gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch);
extern void set_gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch, int deprecated_fp_regnum);
-#if !defined (GDB_TM_FILE) && defined (DEPRECATED_FP_REGNUM)
-#error "Non multi-arch definition of DEPRECATED_FP_REGNUM"
-#endif
-#if !defined (DEPRECATED_FP_REGNUM)
-#define DEPRECATED_FP_REGNUM (gdbarch_deprecated_fp_regnum (current_gdbarch))
-#endif
/* See gdbint.texinfo. See infcall.c. */
# See gdbint.texinfo, and PUSH_DUMMY_CALL.
M::struct frame_id:unwind_dummy_id:struct frame_info *info:info
# Implement UNWIND_DUMMY_ID and PUSH_DUMMY_CALL, then delete
-# DEPRECATED_FP_REGNUM.
-v:=:int:deprecated_fp_regnum:::-1:-1::0
+# deprecated_fp_regnum.
+v::int:deprecated_fp_regnum:::-1:-1::0
# See gdbint.texinfo. See infcall.c.
M::CORE_ADDR:push_dummy_call:struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr:function, regcache, bp_addr, nargs, args, sp, struct_return, struct_addr
gdbarch_sp_regnum (current_gdbarch)), rsp);
regcache_raw_supply (regcache, gdbarch_sp_regnum (current_gdbarch), buf);
- store_unsigned_integer (buf, register_size (current_gdbarch, DEPRECATED_FP_REGNUM), 0);
- regcache_raw_supply (regcache, DEPRECATED_FP_REGNUM, buf);
+ store_unsigned_integer (buf,
+ register_size (current_gdbarch,
+ gdbarch_deprecated_fp_regnum
+ (current_gdbarch)),
+ 0);
+ regcache_raw_supply (regcache,
+ gdbarch_deprecated_fp_regnum (current_gdbarch), buf);
if (nfields == 9)
{
return;
}
- if (regno == DEPRECATED_FP_REGNUM || regno == MIPS_ZERO_REGNUM)
- /* DEPRECATED_FP_REGNUM on the mips is a hack which is just
+ if (regno == gdbarch_deprecated_fp_regnum (current_gdbarch)
+ || regno == MIPS_ZERO_REGNUM)
+ /* gdbarch_deprecated_fp_regnum on the mips is a hack which is just
supposed to read zero (see also mips-nat.c). */
val = 0;
else
static struct value *
value_of_builtin_frame_fp_reg (struct frame_info *frame, const void *baton)
{
- if (DEPRECATED_FP_REGNUM >= 0)
+ if (gdbarch_deprecated_fp_regnum (current_gdbarch) >= 0)
/* NOTE: cagney/2003-04-24: Since the mere presence of "fp" in the
register name table overrides this built-in $fp register, there
- is no real reason for this DEPRECATED_FP_REGNUM trickery here.
+ is no real reason for this gdbarch_deprecated_fp_regnum trickery here.
An architecture wanting to implement "$fp" as alias for a raw
register can do so by adding "fp" to register name table (mind
you, doing this is probably a dangerous thing). */
- return value_of_register (DEPRECATED_FP_REGNUM, frame);
+ return value_of_register (gdbarch_deprecated_fp_regnum (current_gdbarch),
+ frame);
else
{
struct value *val = allocate_value (builtin_type_void_data_ptr);