aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-06-11 10:09:30 +0100
committerAlan Hayward <alan.hayward@arm.com>2018-06-11 10:09:30 +0100
commitf868386e72baad6f35d4288f433266e03ed2753d (patch)
treeb82c89d28fcca4f7e8fdcbc82acfae391f1222af /gdb/regcache.h
parent9c861883169cb9eec4581ab6db3a1b711e79ee10 (diff)
downloadbinutils-f868386e72baad6f35d4288f433266e03ed2753d.zip
binutils-f868386e72baad6f35d4288f433266e03ed2753d.tar.gz
binutils-f868386e72baad6f35d4288f433266e03ed2753d.tar.bz2
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.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index 3b72986..41465fb 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -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;