X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fcris-tdep.c;h=1cb0d5293809e98e34c2c190f33a6811137411f7;hb=fb603883409b7c56d89b9a8a7a344d18f861bbc5;hp=029dc4623c15c66740078d0abf3407e424c691dc;hpb=cb1a6d5f515a44ffcdc3bbf20c2e01ee8a37670d;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 029dc4623c..1cb0d52938 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -470,8 +470,8 @@ cris_frame_prev_register (struct frame_info *next_frame, { struct cris_unwind_cache *info = cris_frame_unwind_cache (next_frame, this_prologue_cache); - trad_frame_prev_register (next_frame, info->saved_regs, regnum, - optimizedp, lvalp, addrp, realnump, bufferp); + trad_frame_get_prev_register (next_frame, info->saved_regs, regnum, + optimizedp, lvalp, addrp, realnump, bufferp); } /* Assuming NEXT_FRAME->prev is a dummy, return the frame ID of that @@ -1211,7 +1211,7 @@ cris_register_offset (int regno) of data in register regno. */ static struct type * -cris_register_virtual_type (int regno) +cris_register_type (struct gdbarch *gdbarch, int regno) { if (regno == SP_REGNUM || regno == PC_REGNUM || (regno > P8_REGNUM && regno < USP_REGNUM)) @@ -1320,7 +1320,7 @@ cris_register_name (int regno) static int cris_register_bytes_ok (long bytes) { - return (bytes == DEPRECATED_REGISTER_BYTES); + return (bytes == deprecated_register_bytes ()); } /* Extract from an array regbuf containing the raw register state a function @@ -3806,8 +3806,8 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_register_name (gdbarch, cris_register_name); /* Length of ordinary registers used in push_word and a few other - places. DEPRECATED_REGISTER_RAW_SIZE is the real way to know how - big a register is. */ + places. register_size() is the real way to know how big a + register is. */ set_gdbarch_deprecated_register_size (gdbarch, 4); set_gdbarch_double_bit (gdbarch, 64); /* The default definition of a long double is 2 * TARGET_DOUBLE_BIT, @@ -3850,19 +3850,11 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) internal_error (__FILE__, __LINE__, "cris_gdbarch_init: unknown CRIS version"); } - set_gdbarch_deprecated_register_bytes (gdbarch, register_bytes); - /* Returns the register offset for the first byte of register regno's space in the saved register state. */ set_gdbarch_deprecated_register_byte (gdbarch, cris_register_offset); - /* The length of the registers in the actual machine representation. */ - set_gdbarch_deprecated_register_raw_size (gdbarch, cris_register_size); - - /* The length of the registers in the program's representation. */ - set_gdbarch_deprecated_register_virtual_size (gdbarch, cris_register_size); - - set_gdbarch_deprecated_register_virtual_type (gdbarch, cris_register_virtual_type); + set_gdbarch_register_type (gdbarch, cris_register_type); /* Dummy frame functions. */ set_gdbarch_push_dummy_code (gdbarch, cris_push_dummy_code);