diff options
author | Alan Hayward <alan.hayward@arm.com> | 2017-05-26 17:04:13 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2017-05-26 17:07:52 +0100 |
commit | b057297ab63a9124aae1773566815cd8c4bde8e9 (patch) | |
tree | 73fedbfc92512c26f04333e433adefa2f2c0a907 /gdb/regcache.h | |
parent | 22e7d2933103f1384c1d54dff6188cd57cbe171a (diff) | |
download | gdb-b057297ab63a9124aae1773566815cd8c4bde8e9.zip gdb-b057297ab63a9124aae1773566815cd8c4bde8e9.tar.gz gdb-b057297ab63a9124aae1773566815cd8c4bde8e9.tar.bz2 |
Add regcache raw_supply_integer and raw_collect_integer.
Use these to replace instances of MAX_REGISTER_SIZE.
* defs.h (copy_integer_to_size): New declaration.
* findvar.c (copy_integer_to_size): New function.
(do_cint_test): New selftest function.
(copy_integer_to_size_test): Likewise.
(_initialize_findvar): Likewise.
* mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
(mips_fbsd_collect_reg): Use raw_collect_integer.
* mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
(mips64_fill_gregset): Use raw_collect_integer
(mips64_fill_fpregset): Use raw_supply_integer.
* regcache.c (regcache::raw_supply_integer): New function.
(regcache::raw_collect_integer): Likewise.
* regcache.h: (regcache::raw_supply_integer): New declaration.
(regcache::raw_collect_integer): Likewise.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index 11126e6..4cf27a0 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -304,8 +304,14 @@ public: void raw_collect (int regnum, void *buf) const; + void raw_collect_integer (int regnum, gdb_byte *addr, int addr_len, + bool is_signed) const; + void raw_supply (int regnum, const void *buf); + void raw_supply_integer (int regnum, const gdb_byte *addr, int addr_len, + bool is_signed); + void raw_supply_zeroed (int regnum); enum register_status get_register_status (int regnum) const; |