aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index b45740d..411392c 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -614,6 +614,7 @@ regcache_raw_read (struct regcache *regcache, int regnum, void *buf)
}
if (!register_cached (regnum))
target_fetch_registers (regnum);
+ gdb_assert (register_cached (regnum));
}
/* Copy the value directly into the register cache. */
memcpy (buf, register_buffer (regcache, regnum),