diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-31 17:19:32 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-31 17:19:32 +0000 |
commit | 8d4c1ba398fa8961059e66d57d0a85c9901d8ebd (patch) | |
tree | 006effde6acc710bc327ad04135b2285d44841d5 /gdb/m68klinux-nat.c | |
parent | 3f4844da1dbc1dc8065933e53ce099532bba2cf5 (diff) | |
download | gdb-8d4c1ba398fa8961059e66d57d0a85c9901d8ebd.zip gdb-8d4c1ba398fa8961059e66d57d0a85c9901d8ebd.tar.gz gdb-8d4c1ba398fa8961059e66d57d0a85c9901d8ebd.tar.bz2 |
2007-05-31 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
gdbarch_cannot_fetch_register.
* alpha-nat.c (fetch_osf_core_registers): Likewise.
* hppa-linux-nat.c (fetch_register): Likewise.
* inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
* m68klinux-nat.c (fetch_register): Likewise.
* mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
Likewise.
* gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
gdbarch_cannot_store_register.
* hppa-linux-nat.c (store_register): Likewise.
* inf-ptrace.c (inf_ptrace_store_register): Likewise.
* regcache.c (regcache_raw_write): Likewise.
* m68klinux-nat.c (store_register): Likewise.
* mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
* gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/m68klinux-nat.c')
-rw-r--r-- | gdb/m68klinux-nat.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c index 96bf524..8f5b7c2 100644 --- a/gdb/m68klinux-nat.c +++ b/gdb/m68klinux-nat.c @@ -123,7 +123,7 @@ fetch_register (struct regcache *regcache, int regno) char buf[MAX_REGISTER_SIZE]; int tid; - if (CANNOT_FETCH_REGISTER (regno)) + if (gdbarch_cannot_fetch_register (current_gdbarch, regno)) { memset (buf, '\0', register_size (current_gdbarch, regno)); /* Supply zeroes */ regcache_raw_supply (regcache, regno, buf); @@ -185,10 +185,8 @@ store_register (const struct regcache *regcache, int regno) int tid; char buf[MAX_REGISTER_SIZE]; - if (CANNOT_STORE_REGISTER (regno)) - { - return; - } + if (gdbarch_cannot_store_register (current_gdbarch, regno)) + return; /* Overload thread id onto process id */ tid = TIDGET (inferior_ptid); |