diff options
author | Gabe Black <gabeblack@google.com> | 2018-01-27 03:18:15 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-01-27 20:29:06 +0000 |
commit | 624a026a393104e6730731695d5d74addd65d79e (patch) | |
tree | 23c9d49a100be452414e8b0a24f013ea2a5fca02 | |
parent | 66c37275ea3acb768d371c46c06a91d7052db8a8 (diff) | |
download | gem5-624a026a393104e6730731695d5d74addd65d79e.tar.xz |
base: Add an "override" to name() in the HardBreakpoint class.
clang reports an error otherwise and fails to compile.
Change-Id: I3603d6c710641f1289e35c67f89a49f5cb71e95e
Reviewed-on: https://gem5-review.googlesource.com/7582
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r-- | src/base/remote_gdb.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/remote_gdb.cc b/src/base/remote_gdb.cc index 09796f1be..80dcd137b 100644 --- a/src/base/remote_gdb.cc +++ b/src/base/remote_gdb.cc @@ -172,7 +172,7 @@ class HardBreakpoint : public PCEvent DPRINTF(GDBMisc, "creating hardware breakpoint at %#x\n", evpc); } - const std::string name() const { return gdb->name() + ".hwbkpt"; } + const std::string name() const override { return gdb->name() + ".hwbkpt"; } void process(ThreadContext *tc) override |