2003-05-15 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Thu, 15 May 2003 18:01:50 +0000 (18:01 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 15 May 2003 18:01:50 +0000 (18:01 +0000)
* regcache.c (build_regcache): Set deprecated_register_valid
directly.
(deprecated_grub_regcache_for_register_valid): Delete function.
* regcache.h (deprecated_grub_regcache_for_register_valid): Delete
declaration.

gdb/ChangeLog
gdb/regcache.c
gdb/regcache.h

index a601a8dc9cb44d7c99b32d60c3d757d9ae47bd1c..cbcc0be9d7879d369d4a61ea8e3b3b4f070c7010 100644 (file)
@@ -1,3 +1,11 @@
+2003-05-15  Andrew Cagney  <cagney@redhat.com>
+
+       * regcache.c (build_regcache): Set deprecated_register_valid
+       directly.
+       (deprecated_grub_regcache_for_register_valid): Delete function.
+       * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
+       declaration.
+
 2003-05-15  David Carlton  <carlton@bactrian.org>
        
        Committed by Elena Zannoni <ezannoni@redhat.com>    
index acf3044fa3cf4069cc8d7f311a07ec4331f1ce20..43548453e6b9a89afef2aa1236ca39d7fbdb9f76 100644 (file)
@@ -499,12 +499,6 @@ deprecated_grub_regcache_for_registers (struct regcache *regcache)
   return regcache->registers;
 }
 
-char *
-deprecated_grub_regcache_for_register_valid (struct regcache *regcache)
-{
-  return regcache->register_valid_p;
-}
-
 /* Global structure containing the current regcache.  */
 /* FIXME: cagney/2002-05-11: The two global arrays registers[] and
    deprecated_register_valid[] currently point into this structure.  */
@@ -1424,7 +1418,7 @@ build_regcache (void)
   current_regcache = regcache_xmalloc (current_gdbarch);
   current_regcache->readonly_p = 0;
   deprecated_registers = deprecated_grub_regcache_for_registers (current_regcache);
-  deprecated_register_valid = deprecated_grub_regcache_for_register_valid (current_regcache);
+  deprecated_register_valid = current_regcache->register_valid_p;
 }
 
 static void
index 5d77095810b7c61b98df2a6c0a7dbe79eb22cb4b..f84820519af0ac3e9e2b3c1e3f471d26e839fbfe 100644 (file)
@@ -196,7 +196,6 @@ extern void regcache_cpy_no_passthrough (struct regcache *dest, struct regcache
    parameterized with FRAME or REGCACHE.  */
 
 extern char *deprecated_grub_regcache_for_registers (struct regcache *);
-extern char *deprecated_grub_regcache_for_register_valid (struct regcache *);
 extern void deprecated_read_register_gen (int regnum, char *myaddr);
 extern void deprecated_write_register_gen (int regnum, char *myaddr);
 extern void deprecated_read_register_bytes (int regbyte, char *myaddr,