summaryrefslogtreecommitdiff
path: root/gdb/mipsnbsd-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-31 17:19:32 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-31 17:19:32 +0000
commit1841d56b9d3a8b261cc5edb2000b5356b743a1e2 (patch)
treec3351d0498bccdea5a1dc7c040a40ef9fe7cba71 /gdb/mipsnbsd-tdep.c
parent16b598238fea98ebff7d314aeefc2e87b6506cac (diff)
downloadgdb-1841d56b9d3a8b261cc5edb2000b5356b743a1e2.tar.gz
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/mipsnbsd-tdep.c')
-rw-r--r--gdb/mipsnbsd-tdep.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/mipsnbsd-tdep.c b/gdb/mipsnbsd-tdep.c
index 1b7aa77e91a..bd82af1a046 100644
--- a/gdb/mipsnbsd-tdep.c
+++ b/gdb/mipsnbsd-tdep.c
@@ -150,7 +150,7 @@ mipsnbsd_supply_reg (struct regcache *regcache, const char *regs, int regno)
{
if (regno == i || regno == -1)
{
- if (CANNOT_FETCH_REGISTER (i))
+ if (gdbarch_cannot_fetch_register (current_gdbarch, i))
regcache_raw_supply (regcache, i, NULL);
else
regcache_raw_supply (regcache, i,
@@ -165,7 +165,8 @@ mipsnbsd_fill_reg (const struct regcache *regcache, char *regs, int regno)
int i;
for (i = 0; i <= PC_REGNUM; i++)
- if ((regno == i || regno == -1) && ! CANNOT_STORE_REGISTER (i))
+ if ((regno == i || regno == -1)
+ && ! gdbarch_cannot_store_register (current_gdbarch, i))
regcache_raw_collect (regcache, i,
regs + (i * mips_isa_regsize (current_gdbarch)));
}
@@ -181,7 +182,7 @@ mipsnbsd_supply_fpreg (struct regcache *regcache, const char *fpregs, int regno)
{
if (regno == i || regno == -1)
{
- if (CANNOT_FETCH_REGISTER (i))
+ if (gdbarch_cannot_fetch_register (current_gdbarch, i))
regcache_raw_supply (regcache, i, NULL);
else
regcache_raw_supply (regcache, i,
@@ -197,7 +198,8 @@ mipsnbsd_fill_fpreg (const struct regcache *regcache, char *fpregs, int regno)
for (i = FP0_REGNUM; i <= mips_regnum (current_gdbarch)->fp_control_status;
i++)
- if ((regno == i || regno == -1) && ! CANNOT_STORE_REGISTER (i))
+ if ((regno == i || regno == -1)
+ && ! gdbarch_cannot_store_register (current_gdbarch, i))
regcache_raw_collect (regcache, i,
fpregs + ((i - FP0_REGNUM) * mips_isa_regsize (current_gdbarch)));
}