aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index e48725a..bf313df 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -616,7 +616,7 @@ regcache_raw_write (struct regcache *regcache, int regnum,
/* On the sparc, writing %g0 is a no-op, so we don't even want to
change the registers array if something writes to this register. */
- if (CANNOT_STORE_REGISTER (regnum))
+ if (gdbarch_cannot_store_register (current_gdbarch, regnum))
return;
/* Make certain that the correct cache is selected. */