aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-07 16:33:54 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-07 16:33:54 +0000
commit0a8146bf610ce1e80ebff664273173d5449396da (patch)
tree9d69f63744513015bebb0dd1761093e1a6eaf2fe /gdb/regcache.c
parent6fec4532f27fc7f4bd9415b40914821674bcf0ab (diff)
downloadgdb-0a8146bf610ce1e80ebff664273173d5449396da.zip
gdb-0a8146bf610ce1e80ebff664273173d5449396da.tar.gz
gdb-0a8146bf610ce1e80ebff664273173d5449396da.tar.bz2
2004-08-07 Andrew Cagney <cagney@gnu.org>
* regcache.c (regcache_raw_read): For the moment, #ifdef assert that the register is valid.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index dd88eb8..12721c3 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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),