This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Tempoary disable regcache assert


Just FYI,

(see main thread for rationale)
http://sources.redhat.com/ml/gdb-patches/2004-08/msg00200.html

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

	* regcache.c (regcache_raw_read): For the moment, #ifdef assert
	that the register is valid.

Index: regcache.c
===================================================================
RCS file: /cvs/src/src/gdb/regcache.c,v
retrieving revision 1.126
diff -p -u -r1.126 regcache.c
--- regcache.c	5 Aug 2004 14:12:39 -0000	1.126
+++ regcache.c	7 Aug 2004 16:32:42 -0000
@@ -614,7 +614,15 @@ regcache_raw_read (struct regcache *regc
 	}
       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),

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]