diff --git a/core/experiments/checksum-oostubs/experiment.cc b/core/experiments/checksum-oostubs/experiment.cc index ffeb2b95..de7c2698 100644 --- a/core/experiments/checksum-oostubs/experiment.cc +++ b/core/experiments/checksum-oostubs/experiment.cc @@ -23,6 +23,12 @@ using std::endl; +// Check if configuration dependencies are satisfied: +#if !defined(CONFIG_EVENT_BREAKPOINTS) || !defined(CONFIG_SR_RESTORE) || \ + !defined(CONFIG_SR_SAVE) || !defined(CONFIG_EVENT_TRAP) + #error This experiment needs: breakpoints, traps, save, and restore. Enable these in the configuration. +#endif + bool ChecksumOOStuBSExperiment::run() { char const *statename = "checksum-oostubs.state";