aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-05-15 18:01:50 +0000
committerAndrew Cagney <cagney@redhat.com>2003-05-15 18:01:50 +0000
commitb923b08ddfdf22cbf8e4e412510a44f57773ac5b (patch)
treead93a69e224c91bfaed14c549858c962e4b4522f /gdb/regcache.c
parenta6c0916fe939b4fe0aef208d54f57c0aff5b4acc (diff)
downloadfsf-binutils-gdb-b923b08ddfdf22cbf8e4e412510a44f57773ac5b.zip
fsf-binutils-gdb-b923b08ddfdf22cbf8e4e412510a44f57773ac5b.tar.gz
fsf-binutils-gdb-b923b08ddfdf22cbf8e4e412510a44f57773ac5b.tar.bz2
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.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index acf3044..4354845 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -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