From 73937e031a946d29ddfff632d478c904fed8d6ff Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 14 Nov 2002 00:25:05 +0000 Subject: 2002-11-13 Andrew Cagney * regcache.h (deprecated_read_register_bytes): Rename read_register_bytes. (deprecated_write_register_bytes): Rename write_register_bytes. * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update. * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update. * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update. * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update. * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update. * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update. * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update. * config/nm-m3.h, config/h8500/tm-h8500.h: Update. * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update. * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update. * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update. * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update. * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update. * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update. 2002-11-13 Andrew Cagney * mi-main.c (mi_cmd_data_write_register_values): Use deprecated_write_register_bytes instead of write_register_bytes. --- gdb/d10v-tdep.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'gdb/d10v-tdep.c') diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index 42ac505..1b2987a 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -486,15 +486,15 @@ d10v_store_return_value (struct type *type, char *valbuf) if (TYPE_LENGTH (type) == 1 && TYPE_CODE (type) == TYPE_CODE_INT) { - write_register_bytes (REGISTER_BYTE (RET1_REGNUM), - &tmp, 1); /* zero the high byte */ - write_register_bytes (REGISTER_BYTE (RET1_REGNUM) + 1, - valbuf, 1); /* copy the low byte */ + /* zero the high byte */ + deprecated_write_register_bytes (REGISTER_BYTE (RET1_REGNUM), &tmp, 1); + /* copy the low byte */ + deprecated_write_register_bytes (REGISTER_BYTE (RET1_REGNUM) + 1, + valbuf, 1); } else - write_register_bytes (REGISTER_BYTE (RET1_REGNUM), - valbuf, - TYPE_LENGTH (type)); + deprecated_write_register_bytes (REGISTER_BYTE (RET1_REGNUM), + valbuf, TYPE_LENGTH (type)); } /* Extract from an array REGBUF containing the (raw) register state @@ -558,7 +558,8 @@ do_d10v_pop_frame (struct frame_info *fi) if (fi->saved_regs[regnum]) { read_memory (fi->saved_regs[regnum], raw_buffer, REGISTER_RAW_SIZE (regnum)); - write_register_bytes (REGISTER_BYTE (regnum), raw_buffer, REGISTER_RAW_SIZE (regnum)); + deprecated_write_register_bytes (REGISTER_BYTE (regnum), raw_buffer, + REGISTER_RAW_SIZE (regnum)); } } for (regnum = 0; regnum < SP_REGNUM; regnum++) -- cgit v1.1