aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-08-25 14:44:04 +0000
committerAndrew Cagney <cagney@redhat.com>2002-08-25 14:44:04 +0000
commit0ed04cce6d6d1d4eaf7f92896c12b18bc284fe17 (patch)
tree495947a5f6bc8b3aa9df30ad5bad7fa3c5c539ec /gdb/regcache.h
parent46d8b1c3257be46d519b2642615fbc232368afc1 (diff)
downloadgdb-0ed04cce6d6d1d4eaf7f92896c12b18bc284fe17.zip
gdb-0ed04cce6d6d1d4eaf7f92896c12b18bc284fe17.tar.gz
gdb-0ed04cce6d6d1d4eaf7f92896c12b18bc284fe17.tar.bz2
2002-08-25 Andrew Cagney <ac131313@redhat.com>
* regcache.c (max_register_size): New function. (init_legacy_regcache_descr): Ensure that max_register_size is large enough for REGISTER_VIRTUAL_SIZE. * regcache.h (max_register_size): Declare.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index da91fd6..6af729a 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -88,6 +88,12 @@ extern void supply_register (int regnum, const void *val);
extern void regcache_collect (int regnum, void *buf);
+/* Return the size of the largest register. Used when allocating
+ space for an aribtrary register value. */
+
+extern int max_register_size (struct gdbarch *gdbarch);
+
+
/* DEPRECATED: Character array containing an image of the inferior
programs' registers for the most recently referenced thread. */