From 0a8146bf610ce1e80ebff664273173d5449396da Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 7 Aug 2004 16:33:54 +0000 Subject: [PATCH] 2004-08-07 Andrew Cagney * regcache.c (regcache_raw_read): For the moment, #ifdef assert that the register is valid. --- gdb/ChangeLog | 5 +++++ gdb/regcache.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2cd4a13e296..ab03b29072a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-08-07 Andrew Cagney + + * regcache.c (regcache_raw_read): For the moment, #ifdef assert + that the register is valid. + 2004-08-05 Mark Kettenis * i386-linux-tdep.c (i386_linux_sigtramp_start) diff --git a/gdb/regcache.c b/gdb/regcache.c index dd88eb88570..12721c330e3 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), -- 2.30.2