X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.plugin.core%2Fsrc%2Fnet%2Fmograsim%2Fplugin%2Flaunch%2FMachineLaunchConfigType.java;h=5622ca6de42e2c1aeae61b929adc39dca9fa83c7;hb=13577856cd85c46f2cd4ad956332697bc820f425;hp=286975a6f1d7109ee0655fb16e6bc07f2e199ed5;hpb=39a9cc869cbf3e1c7fc3a61ea6552d5d078e1d66;p=Mograsim.git diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/launch/MachineLaunchConfigType.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/launch/MachineLaunchConfigType.java index 286975a6..5622ca6d 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/launch/MachineLaunchConfigType.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/launch/MachineLaunchConfigType.java @@ -11,8 +11,10 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; +import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.core.ILaunchConfiguration; +import org.eclipse.debug.core.model.IMemoryBlock; import org.eclipse.debug.core.model.LaunchConfigurationDelegate; import org.eclipse.ui.statushandlers.StatusManager; @@ -125,6 +127,10 @@ public class MachineLaunchConfigType extends LaunchConfigurationDelegate debugTarget.setExecutionSpeed(1); machine = debugTarget.getMachine(); machine.reset(); + + // Add the default Mograsim memory block to make it less confusing and more comfortable. + DebugPlugin.getDefault().getMemoryBlockManager() + .addMemoryBlocks(new IMemoryBlock[] { new MainMemoryBlockExtension(debugTarget, "0", null) }); } } \ No newline at end of file