* hpux-thread.c (hpux_thread_store_registers): Use
authorUlrich Weigand <uweigand@de.ibm.com>
Sat, 28 Apr 2007 22:51:34 +0000 (22:51 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Sat, 28 Apr 2007 22:51:34 +0000 (22:51 +0000)
regcache_raw_collect, not regcache_raw_read.
* irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
not regcache_raw_write.

gdb/ChangeLog
gdb/hpux-thread.c
gdb/irix5-nat.c

index 555171e5280c09fc70323ff4e6ed0a7381347a23..f023281783c457b68eb64fb5c9599600e02e6ce4 100644 (file)
@@ -1,3 +1,10 @@
+2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * 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  <uweigand@de.ibm.com>
 
        * gdbarch.sh: Remove deprecated_register_byte.
index c5d48d026043b0d9aa73ab6f71bce25c6f5f42e8..a3640b8b0c03ec3792898a3e4715dc7403a216d2 100644 (file)
@@ -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));
            }
index a7b64dc032baf9c965dfa9196ebdf6df036d736f..ff23a9a8a6089ca8aa77056f33033b2a6e9d007e 100644 (file)
@@ -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;
     }
 }