Add regcache raw_compare method

gdb/
	* common/common-regcache.h (raw_compare): New function.
	* regcache.c (regcache::raw_compare): Likewise.
	* regcache.h (regcache::raw_compare): New declaration.

gdbserver/
	* regcache.c (regcache::raw_compare): New function.
	* regcache.h (regcache::raw_compare): New declaration.
This commit is contained in:
Alan Hayward
2018-06-11 10:09:30 +01:00
parent 9c86188316
commit f868386e72
7 changed files with 50 additions and 0 deletions

View File

@ -188,6 +188,9 @@ public:
virtual ~reg_buffer () = default;
/* See common/common-regcache.h. */
bool raw_compare (int regnum, const void *buf, int offset) const override;
protected:
/* Assert on the range of REGNUM. */
void assert_regnum (int regnum) const;