base: Add an "override" to name() in the HardBreakpoint class.
authorGabe Black <gabeblack@google.com>
Sat, 27 Jan 2018 11:18:15 +0000 (03:18 -0800)
committerGabe Black <gabeblack@google.com>
Sat, 27 Jan 2018 20:29:06 +0000 (20:29 +0000)
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>

src/base/remote_gdb.cc

index 09796f1be4a4be3521ea3d23cd169bd44f3a0732..80dcd137b1ddde696e533b8577db53750bfe4242 100644 (file)
@@ -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