diff options
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index fdc47ba35f..11126e68ca 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -250,6 +250,11 @@ public: regcache (const regcache &) = delete; void operator= (const regcache &) = delete; + /* class regcache is only extended in unit test, so only mark it + virtual when selftest is enabled. */ +#if GDB_SELF_TEST + virtual +#endif ~regcache () { xfree (m_registers); @@ -269,6 +274,12 @@ public: void cooked_write (int regnum, const gdb_byte *buf); enum register_status raw_read (int regnum, gdb_byte *buf); + + /* class regcache is only extended in unit test, so only mark it + virtual when selftest is enabled. */ +#if GDB_SELF_TEST + virtual +#endif void raw_write (int regnum, const gdb_byte *buf); enum register_status raw_read_signed (int regnum, LONGEST *val); |