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/inf-ptrace.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/inf-ptrace.c')
-rw-r--r-- | gdb/inf-ptrace.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 19826bd..dfdfe50 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -626,7 +626,8 @@ inf_ptrace_fetch_register (struct regcache *regcache, int regnum) /* This isn't really an address, but ptrace thinks of it as one. */ addr = inf_ptrace_register_u_offset (current_gdbarch, regnum, 0); - if (addr == (CORE_ADDR)-1 || CANNOT_FETCH_REGISTER (regnum)) + if (addr == (CORE_ADDR)-1 + || gdbarch_cannot_fetch_register (current_gdbarch, regnum)) { regcache_raw_supply (regcache, regnum, NULL); return; @@ -681,7 +682,8 @@ inf_ptrace_store_register (const struct regcache *regcache, int regnum) /* This isn't really an address, but ptrace thinks of it as one. */ addr = inf_ptrace_register_u_offset (current_gdbarch, regnum, 1); - if (addr == (CORE_ADDR)-1 || CANNOT_STORE_REGISTER (regnum)) + if (addr == (CORE_ADDR)-1 + || gdbarch_cannot_store_register (current_gdbarch, regnum)) return; /* Cater for systems like GNU/Linux, that implement threads as |