public BreakpointView(
     DisassemblerView disView, SourceLevelDebugView sourceLevelDebugView, IEmulator emulator) {
   if (emulator == null) {
     throw new IllegalArgumentException("emulator must not be null");
   }
   if (disView == null) {
     throw new IllegalArgumentException("disView must not be null");
   }
   this.sourceLevelDebugView =
       sourceLevelDebugView; // may be NULL if we're debugging a plain object file without the
                             // source
   this.disView = disView;
   this.emulator = emulator;
   emulator.addEmulationListener(listener);
 }
Example #2
0
  private void setEmulator(IEmulator emulator) {
    if (emulator == null) {
      throw new IllegalArgumentException("emulator must not be NULL.");
    }
    if (this.emulator == emulator) {
      return;
    }

    if (this.emulator != null) {
      this.emulator.removeEmulationListener(listener);
    }
    this.emulator = emulator;

    this.emulatorController = new EmulatorControllerView(perspective, emulator);
    emulator.addEmulationListener(listener);
  }