From 2ca3e84c64b71d55af4dcc35ca069f9d74b6395f Mon Sep 17 00:00:00 2001 From: hellwig Date: Tue, 5 Jun 2012 12:52:31 +0000 Subject: [PATCH] added guards to weathermonitor-experiment git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1300 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- core/experiments/weathermonitor/experiment.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/experiments/weathermonitor/experiment.cc b/core/experiments/weathermonitor/experiment.cc index b90a53b5..74986b40 100644 --- a/core/experiments/weathermonitor/experiment.cc +++ b/core/experiments/weathermonitor/experiment.cc @@ -25,6 +25,13 @@ 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, suppressed-interrupts, traps, save, and restore. Enable these in the configuration. +#endif + bool WeathermonitorExperiment::run() { char const *statename = "bochs.state";