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