diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-06-11 10:09:30 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2018-06-11 10:09:30 +0100 |
commit | f868386e72baad6f35d4288f433266e03ed2753d (patch) | |
tree | b82c89d28fcca4f7e8fdcbc82acfae391f1222af /gdb/common | |
parent | 9c861883169cb9eec4581ab6db3a1b711e79ee10 (diff) | |
download | gdb-f868386e72baad6f35d4288f433266e03ed2753d.zip gdb-f868386e72baad6f35d4288f433266e03ed2753d.tar.gz gdb-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/common')
-rw-r--r-- | gdb/common/common-regcache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/common/common-regcache.h b/gdb/common/common-regcache.h index 4e6bdde..18080b2 100644 --- a/gdb/common/common-regcache.h +++ b/gdb/common/common-regcache.h @@ -75,6 +75,11 @@ struct reg_buffer_common /* Collect register REGNUM from REGCACHE and store its contents in BUF. */ virtual void raw_collect (int regnum, void *buf) const = 0; + + /* Compare the contents of the register stored in the regcache (ignoring the + first OFFSET bytes) to the contents of BUF (without any offset). Returns + true if the same. */ + virtual bool raw_compare (int regnum, const void *buf, int offset) const = 0; }; #endif /* COMMON_REGCACHE_H */ |