diff options
author | Jim Blandy <jimb@codesourcery.com> | 2004-06-05 03:25:22 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2004-06-05 03:25:22 +0000 |
commit | 8327ccee5c9f1a74d092aca92e0f437853e1e211 (patch) | |
tree | 87b31bc5b22b452f53960e9fe65211bae6335f9a | |
parent | a3c001cee072616bc3e7ddd8f617f759e1395aae (diff) | |
download | gdb-8327ccee5c9f1a74d092aca92e0f437853e1e211.zip gdb-8327ccee5c9f1a74d092aca92e0f437853e1e211.tar.gz gdb-8327ccee5c9f1a74d092aca92e0f437853e1e211.tar.bz2 |
* ppc-linux-nat.c (fetch_register): Don't forget to pass the
gdbarch argument to register_size.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/ppc-linux-nat.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e0b8808..6ca06c5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 0700d84..0567e28 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -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; |