Bochs-modifying aspect: never abort/ask the user on what to do

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1428 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-07-05 16:31:14 +00:00
parent 596f4c0644
commit 13d5e4dbeb
4 changed files with 53 additions and 2 deletions

View File

@ -17,13 +17,21 @@ aspect BochsNonVerbose {
|| execution("% logfunctions::info(...)")
|| execution("% logfunctions::pass(...)")
|| execution("% logfunctions::error(...)")
|| execution("% logfunctions::panic(...)")
: around () { }
};
*/
aspect BochsNonVerbose {
pointcut get_default_action() = "int logfunctions::get_default_action(int)";
// make sure we're the innermost aspect
advice call(get_default_action()) : order ("BochsNoAbort", "BochsNonVerbose");
// needed to suppress Bochs output *before* a state restore finished
advice call("int logfunctions::get_default_action(int)")
// This works around the BUG mentioned in bochs/logio.cc /
// logfunctions::logfunctions().
advice call(get_default_action())
: around ()
{
int action;