* ppc-linux-nat.c (fetch_register): Don't forget to pass the
authorJim Blandy <jimb@codesourcery.com>
Sat, 5 Jun 2004 03:25:22 +0000 (03:25 +0000)
committerJim Blandy <jimb@codesourcery.com>
Sat, 5 Jun 2004 03:25:22 +0000 (03:25 +0000)
gdbarch argument to register_size.

gdb/ChangeLog
gdb/ppc-linux-nat.c

index e0b88081197831cb1dfe3203e67637131e82fe17..6ca06c581c1e93e211941ae052893ea48e096b33 100644 (file)
@@ -1,5 +1,8 @@
 2004-06-04  Jim Blandy  <jimb@redhat.com>
 
+       * ppc-linux-nat.c (fetch_register): Don't forget to pass the
+       gdbarch argument to register_size.
+
        * rs6000-tdep.c (rs6000_store_return_value): Use
        regcache_cooked_write_part instead of
        deprecated_write_register_bytes.
index 0700d84b40f44697a6644e001cf13c5d106ae3a0..0567e288b2b9b14d81523dd7d6d250a6ad82e527 100644 (file)
@@ -240,7 +240,7 @@ fetch_register (int tid, int regno)
      32-bit platform, 64-bit floating-point registers will require two
      transfers.  */
   for (bytes_transferred = 0;
-       bytes_transferred < register_size (regno);
+       bytes_transferred < register_size (current_gdbarch, regno);
        bytes_transferred += sizeof (PTRACE_XFER_TYPE))
     {
       errno = 0;