mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 23:15:24 +02:00
debug tests: MIMemoryTest: Use runToLocation when possible
Change-Id: I66f76039cecf5333826be1b75556437a059c71b9 Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
This commit is contained in:
parent
544dbb5af8
commit
5ad1f5c4c3
1 changed files with 28 additions and 56 deletions
|
@ -347,8 +347,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void readWithNullContext() throws Throwable {
|
public void readWithNullContext() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -379,8 +378,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void readWithInvalidAddress() throws Throwable {
|
public void readWithInvalidAddress() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
SyncUtil.step(StepType.STEP_RETURN);
|
SyncUtil.step(StepType.STEP_RETURN);
|
||||||
|
|
||||||
// Setup call parameters
|
// Setup call parameters
|
||||||
|
@ -408,8 +406,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void readWithInvalidWordSize() throws Throwable {
|
public void readWithInvalidWordSize() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -438,8 +435,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void readWithInvalidCount() throws Throwable {
|
public void readWithInvalidCount() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -469,8 +465,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void readCharVaryingBaseAddress() throws Throwable {
|
public void readCharVaryingBaseAddress() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is zeroed
|
// Run to the point where the variable is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -488,8 +483,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:setBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:setBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
SyncUtil.step(StepType.STEP_RETURN);
|
SyncUtil.step(StepType.STEP_RETURN);
|
||||||
|
|
||||||
// Verify that all bytes are set
|
// Verify that all bytes are set
|
||||||
|
@ -511,8 +505,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void readCharVaryingOffset() throws Throwable {
|
public void readCharVaryingOffset() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the array is zeroed
|
// Run to the point where the array is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -529,8 +522,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run to the point where the array is set
|
// Run to the point where the array is set
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:setBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:setBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
SyncUtil.step(StepType.STEP_RETURN);
|
SyncUtil.step(StepType.STEP_RETURN);
|
||||||
|
|
||||||
// Verify that all bytes are set
|
// Verify that all bytes are set
|
||||||
|
@ -551,8 +543,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void readCharArray() throws Throwable {
|
public void readCharArray() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is zeroed
|
// Run to the point where the variable is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -572,8 +563,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:setBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:setBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
SyncUtil.step(StepType.STEP_RETURN);
|
SyncUtil.step(StepType.STEP_RETURN);
|
||||||
|
|
||||||
// Get the memory block
|
// Get the memory block
|
||||||
|
@ -601,8 +591,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writeWithNullContext() throws Throwable {
|
public void writeWithNullContext() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -633,8 +622,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writeWithInvalidAddress() throws Throwable {
|
public void writeWithInvalidAddress() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
SyncUtil.step(StepType.STEP_RETURN);
|
SyncUtil.step(StepType.STEP_RETURN);
|
||||||
|
|
||||||
// Setup call parameters
|
// Setup call parameters
|
||||||
|
@ -665,8 +653,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writeWithInvalidWordSize() throws Throwable {
|
public void writeWithInvalidWordSize() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -696,8 +683,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writeWithInvalidCount() throws Throwable {
|
public void writeWithInvalidCount() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -728,8 +714,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writeWithInvalidBuffer() throws Throwable {
|
public void writeWithInvalidBuffer() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -760,8 +745,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writeCharVaryingAddress() throws Throwable {
|
public void writeCharVaryingAddress() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is zeroed
|
// Run to the point where the variable is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -811,8 +795,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writeCharVaryingOffset() throws Throwable {
|
public void writeCharVaryingOffset() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is zeroed
|
// Run to the point where the variable is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -857,8 +840,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writeCharArray() throws Throwable {
|
public void writeCharArray() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is zeroed
|
// Run to the point where the variable is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -904,8 +886,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void fillWithNullContext() throws Throwable {
|
public void fillWithNullContext() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -936,8 +917,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void fillWithInvalidAddress() throws Throwable {
|
public void fillWithInvalidAddress() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
SyncUtil.step(StepType.STEP_RETURN);
|
SyncUtil.step(StepType.STEP_RETURN);
|
||||||
|
|
||||||
// Setup call parameters
|
// Setup call parameters
|
||||||
|
@ -974,8 +954,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void fillWithInvalidWordSize() throws Throwable {
|
public void fillWithInvalidWordSize() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -1005,8 +984,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void fillWithInvalidCount() throws Throwable {
|
public void fillWithInvalidCount() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -1037,8 +1015,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void fillWithInvalidPattern() throws Throwable {
|
public void fillWithInvalidPattern() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -1069,8 +1046,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writePatternVaryingAddress() throws Throwable {
|
public void writePatternVaryingAddress() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is zeroed
|
// Run to the point where the variable is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -1114,8 +1090,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writePatternVaryingOffset() throws Throwable {
|
public void writePatternVaryingOffset() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is zeroed
|
// Run to the point where the variable is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -1160,8 +1135,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void writePatternCountTimes() throws Throwable {
|
public void writePatternCountTimes() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is zeroed
|
// Run to the point where the variable is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -1204,8 +1178,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void asynchronousReadWrite() throws Throwable {
|
public void asynchronousReadWrite() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the array is zeroed
|
// Run to the point where the array is zeroed
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:zeroBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:zeroBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
@ -1290,8 +1263,7 @@ public class MIMemoryTest extends BaseTestCase {
|
||||||
public void memoryCacheRead() throws Throwable {
|
public void memoryCacheRead() throws Throwable {
|
||||||
|
|
||||||
// Run to the point where the variable is initialized
|
// Run to the point where the variable is initialized
|
||||||
SyncUtil.addBreakpoint("MemoryTestApp.cc:setBlocks", true);
|
SyncUtil.runToLocation("MemoryTestApp.cc:setBlocks");
|
||||||
SyncUtil.resumeUntilStopped();
|
|
||||||
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
MIStoppedEvent stoppedEvent = SyncUtil.step(StepType.STEP_RETURN);
|
||||||
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
IFrameDMContext frameDmc = SyncUtil.getStackFrame(stoppedEvent.getDMContext(), 0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue