Example experiment: Minor fix

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1606 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hoffmann
2012-09-10 08:15:21 +00:00
parent 918eb94523
commit ec83ecd645

View File

@ -35,15 +35,16 @@ bool VEZSExperiment::run()
log << elf.getAddressByName("main") << endl;
BPSingleListener bp;
#if 1
#if 0
// STEP 1: run until interesting function starts, and save state
bp.setWatchInstructionPointer(elf.getAddressByName("main"));
if(simulator.addListenerAndResume(&bp) == &bp){
log << "test function entry reached, saving state" << endl;
}
log << "EIP = " << hex << bp.getTriggerInstructionPointer() << " or " << simulator.getRegisterManager().getInstructionPointer() << endl;
simulator.terminate();
//simulator.save("vezs.state");
//simulator.terminate();
simulator.save("vezs.state");
simulator.terminate();
#endif
#if 1
@ -126,5 +127,5 @@ bool VEZSExperiment::run()
#endif
// Explicitly terminate, or the simulator will continue to run.
simulator.resume();
simulator.terminate();
}