Search in sources :

Example 1 with MemoryLoader

use of com.google.security.zynamics.binnavi.debug.debugger.MemoryLoader in project binnavi by google.

the class CMemoryLoaderTest method setUp.

@Before
public void setUp() {
    debugger = new MockDebugger(new ModuleTargetSettings(CommonTestObjects.MODULE));
    final ArrayList<MemorySection> sections = new ArrayList<MemorySection>();
    sections.add(new MemorySection(new CAddress(BigInteger.ZERO), new CAddress(BigInteger.valueOf(1000))));
    debugger.getProcessManager().setMemoryMap(new MemoryMap(sections));
    loader = new MemoryLoader(debugger);
}
Also used : MemoryMap(com.google.security.zynamics.binnavi.debug.models.processmanager.MemoryMap) MemorySection(com.google.security.zynamics.binnavi.debug.models.processmanager.MemorySection) ArrayList(java.util.ArrayList) MemoryLoader(com.google.security.zynamics.binnavi.debug.debugger.MemoryLoader) ModuleTargetSettings(com.google.security.zynamics.binnavi.debug.debugger.ModuleTargetSettings) CAddress(com.google.security.zynamics.zylib.disassembly.CAddress) Before(org.junit.Before)

Aggregations

MemoryLoader (com.google.security.zynamics.binnavi.debug.debugger.MemoryLoader)1 ModuleTargetSettings (com.google.security.zynamics.binnavi.debug.debugger.ModuleTargetSettings)1 MemoryMap (com.google.security.zynamics.binnavi.debug.models.processmanager.MemoryMap)1 MemorySection (com.google.security.zynamics.binnavi.debug.models.processmanager.MemorySection)1 CAddress (com.google.security.zynamics.zylib.disassembly.CAddress)1 ArrayList (java.util.ArrayList)1 Before (org.junit.Before)1