* regcache.c (regcache_raw_read): Assert that, after calling
target_fetch_registers, the register we're reading is cached.
This commit is contained in:
parent
870d65d5f6
commit
7ab3286fbe
@ -1,5 +1,8 @@
|
||||
2004-08-04 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* regcache.c (regcache_raw_read): Assert that, after calling
|
||||
target_fetch_registers, the register we're reading is cached.
|
||||
|
||||
* ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
|
||||
a call to 'internal_error', with a more helpful error message.
|
||||
* rs6000-tdep.c (e500_pseudo_register_read,
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user