From: Gabe Black Date: Sat, 27 Jan 2018 11:18:15 +0000 (-0800) Subject: base: Add an "override" to name() in the HardBreakpoint class. X-Git-Tag: v19.0.0.0~2353 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=624a026a393104e6730731695d5d74addd65d79e;p=gem5.git 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 Maintainer: Jason Lowe-Power --- 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