mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
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.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user