From: Ulrich Weigand Date: Sat, 28 Apr 2007 22:51:34 +0000 (+0000) Subject: * hpux-thread.c (hpux_thread_store_registers): Use X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bb42077f294696bb97d9b047239b32b4ccf5d49;p=binutils-gdb.git * hpux-thread.c (hpux_thread_store_registers): Use regcache_raw_collect, not regcache_raw_read. * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply, not regcache_raw_write. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 555171e5280..f023281783c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2007-04-28 Ulrich Weigand + + * hpux-thread.c (hpux_thread_store_registers): Use + regcache_raw_collect, not regcache_raw_read. + * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply, + not regcache_raw_write. + 2007-04-28 Ulrich Weigand * gdbarch.sh: Remove deprecated_register_byte. diff --git a/gdb/hpux-thread.c b/gdb/hpux-thread.c index c5d48d02604..a3640b8b0c0 100644 --- a/gdb/hpux-thread.c +++ b/gdb/hpux-thread.c @@ -359,7 +359,7 @@ hpux_thread_store_registers (int regno) deprecated_child_ops.to_store_registers (regno); /* Let lower layer handle this... */ else if (regno == HPPA_SP_REGNUM) { - regcache_raw_read (current_regcache, regno, buf); + regcache_raw_collect (current_regcache, regno, buf); write_memory ((CORE_ADDR) &tcb_ptr->static_ctx.sp, buf, register_size (current_gdbarch, regno)); tcb_ptr->static_ctx.sp @@ -367,13 +367,13 @@ hpux_thread_store_registers (int regno) } else if (regno == HPPA_PCOQ_HEAD_REGNUM) { - regcache_raw_read (current_regcache, regno, buf); + regcache_raw_collect (current_regcache, regno, buf); write_memory (sp - 20, buf, register_size (current_gdbarch, regno)); } else { - regcache_raw_read (current_regcache, regno, buf); + regcache_raw_collect (current_regcache, regno, buf); write_memory (sp + regmap[regno], buf, register_size (current_gdbarch, regno)); } diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index a7b64dc032b..ff23a9a8a60 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -255,7 +255,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, for (regno = 0; regno < NUM_REGS; regno++) { - regcache_raw_write (current_regcache, regno, srcp); + regcache_raw_supply (current_regcache, regno, srcp); srcp += regsize; } }