aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-07-13 08:16:12 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2021-07-13 08:16:12 -0700
commit30a696c543419bb9cadb844f9d2e2d6ecc66d3b5 (patch)
treeb5cf1f5c88247850a01aca413ccefc7bb03fcbc0 /gdb/regcache.h
parent3a76f8f489428bada97c9dea2145448a3e0f7135 (diff)
downloadbinutils-30a696c543419bb9cadb844f9d2e2d6ecc66d3b5.zip
binutils-30a696c543419bb9cadb844f9d2e2d6ecc66d3b5.tar.gz
binutils-30a696c543419bb9cadb844f9d2e2d6ecc66d3b5.tar.bz2
Add regcache_map_supplies helper routine.
This helper can be used in the fetch_registers and store_registers target methods to determine if a register set includes a specific register.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index ee254f3..cd2e441 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -150,6 +150,15 @@ extern void regcache_collect_regset (const struct regset *regset,
int regnum, void *buf, size_t size);
+/* Return true if a set of registers contains the value of the
+ register numbered REGNUM. The size of the set of registers is
+ given in SIZE, and the layout of the set of registers is described
+ by MAP. */
+
+extern bool regcache_map_supplies (const struct regcache_map_entry *map,
+ int regnum, struct gdbarch *gdbarch,
+ size_t size);
+
/* The type of a register. This function is slightly more efficient
then its gdbarch vector counterpart since it returns a precomputed
value stored in a table. */