[PATCH] Make process_stratum_target::stratum "final"
Tom Tromey
tromey@adacore.com
Thu Apr 18 15:43:00 GMT 2019
It seemed to me that process_stratum_target::stratum ought to be
"final".
Tested by rebuilding, let me know what you think.
gdb/ChangeLog
2019-04-18 Tom Tromey <tromey@adacore.com>
* process-stratum-target.h (class process_stratum_target)
<stratum>: Add "final".
---
gdb/ChangeLog | 5 +++++
gdb/process-stratum-target.h | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/process-stratum-target.h b/gdb/process-stratum-target.h
index fd308658fbb..2e620f82e8a 100644
--- a/gdb/process-stratum-target.h
+++ b/gdb/process-stratum-target.h
@@ -29,7 +29,7 @@ class process_stratum_target : public target_ops
public:
~process_stratum_target () override = 0;
- strata stratum () const override { return process_stratum; }
+ strata stratum () const final override { return process_stratum; }
/* We must default these because they must be implemented by any
target that can run. */
--
2.20.1
More information about the Gdb-patches
mailing list