This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Eliminate deprecated_grub_regcache_for_register_valid
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 15 May 2003 14:03:07 -0400
- Subject: [commit] Eliminate deprecated_grub_regcache_for_register_valid
It's only used once (inside regcache.c) so this inlines it at the caller.
committed,
Andrew
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.
Index: regcache.c
===================================================================
RCS file: /cvs/src/src/gdb/regcache.c,v
retrieving revision 1.80
diff -u -r1.80 regcache.c
--- regcache.c 8 May 2003 22:33:14 -0000 1.80
+++ regcache.c 15 May 2003 17:59:55 -0000
@@ -499,12 +499,6 @@
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 @@
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: regcache.h
===================================================================
RCS file: /cvs/src/src/gdb/regcache.h,v
retrieving revision 1.34
diff -u -r1.34 regcache.h
--- regcache.h 8 May 2003 22:33:14 -0000 1.34
+++ regcache.h 15 May 2003 17:59:55 -0000
@@ -196,7 +196,6 @@
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,