X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftest-target.h;h=770f79c5436c7184b990ceb5e1e506901eb00c81;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=b3170f82656ef7cb85ce158c249b9ed29fcbd380;hpb=c180496d2ac268c06c13600f729d02ca4266e6ea;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/test-target.h b/gdb/test-target.h index b3170f8265..770f79c543 100644 --- a/gdb/test-target.h +++ b/gdb/test-target.h @@ -1,6 +1,6 @@ /* A mock process_stratum target_ops - Copyright (C) 2017-2018 Free Software Foundation, Inc. + Copyright (C) 2017-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -20,7 +20,7 @@ #ifndef TEST_TARGET_H #define TEST_TARGET_H -#include "target.h" +#include "process-stratum-target.h" #if GDB_SELF_TEST namespace selftests { @@ -28,14 +28,10 @@ namespace selftests { /* A mock process_stratum target_ops that doesn't read/write registers anywhere. */ -class test_target_ops : public target_ops +class test_target_ops : public process_stratum_target { public: - test_target_ops () - : target_ops {} - { - to_stratum = process_stratum; - } + test_target_ops () = default; const target_info &info () const override;