DatabaseExperiment: fix wrong variable scope
This fixes a wrong variable scope introduced in commit 193e5b7,
breaking compilation.
Change-Id: I74194e9ea6e726bc0a7ce2ee5ad5439b7de87fba
This commit is contained in:
@ -114,6 +114,7 @@ bool DatabaseExperiment::run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do we need to fast-forward at all?
|
// Do we need to fast-forward at all?
|
||||||
|
fail::BaseListener *listener = 0;
|
||||||
if (injection_instr > 0) {
|
if (injection_instr > 0) {
|
||||||
// Create a listener that matches any IP event. It is used to
|
// Create a listener that matches any IP event. It is used to
|
||||||
// forward to the injection point.
|
// forward to the injection point.
|
||||||
@ -122,7 +123,6 @@ bool DatabaseExperiment::run()
|
|||||||
bp.setCounter(injection_instr);
|
bp.setCounter(injection_instr);
|
||||||
simulator.addListener(&bp);
|
simulator.addListener(&bp);
|
||||||
|
|
||||||
fail::BaseListener * listener;
|
|
||||||
while (true) {
|
while (true) {
|
||||||
listener = simulator.resume();
|
listener = simulator.resume();
|
||||||
if (listener == &bp) {
|
if (listener == &bp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user