2004-08-07 Andrew Cagney <cagney@gnu.org>

* regcache.c (regcache_raw_read): For the moment, #ifdef assert
	that the register is valid.
This commit is contained in:
Andrew Cagney 2004-08-07 16:33:54 +00:00
parent 6fec4532f2
commit 0a8146bf61
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-08-07 Andrew Cagney <cagney@gnu.org>
* regcache.c (regcache_raw_read): For the moment, #ifdef assert
that the register is valid.
2004-08-05 Mark Kettenis <kettenis@chello.nl>
* i386-linux-tdep.c (i386_linux_sigtramp_start)

View File

@ -614,7 +614,15 @@ regcache_raw_read (struct regcache *regcache, int regnum, void *buf)
}
if (!register_cached (regnum))
target_fetch_registers (regnum);
#if 0
/* FIXME: cagney/2004-08-07: At present a number of targets
forget (or didn't know that they needed) set this leading to
panics. Also is the problem that target's need to indicate
that a register is in one of the possible states: valid,
undefined, unknown. The last of which isn't yet
possible. */
gdb_assert (register_cached (regnum));
#endif
}
/* Copy the value directly into the register cache. */
memcpy (buf, register_buffer (regcache, regnum),