Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 413483
Collapse All | Expand All

(-)a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/StartOrRestartProcessSequence_7_0.java (+17 lines)
Lines 26-31 Link Here
26
import org.eclipse.cdt.dsf.concurrent.RequestMonitor;
26
import org.eclipse.cdt.dsf.concurrent.RequestMonitor;
27
import org.eclipse.cdt.dsf.datamodel.DMContexts;
27
import org.eclipse.cdt.dsf.datamodel.DMContexts;
28
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext;
28
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext;
29
import org.eclipse.cdt.dsf.debug.service.IMemory.IMemoryDMContext;
29
import org.eclipse.cdt.dsf.debug.service.IRunControl.IContainerDMContext;
30
import org.eclipse.cdt.dsf.debug.service.IRunControl.IContainerDMContext;
30
import org.eclipse.cdt.dsf.debug.service.command.ICommand;
31
import org.eclipse.cdt.dsf.debug.service.command.ICommand;
31
import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants;
32
import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants;
Lines 134-139 Link Here
134
					"stepInitializeInputOutput",   //$NON-NLS-1$
135
					"stepInitializeInputOutput",   //$NON-NLS-1$
135
					"stepCreateConsole",    //$NON-NLS-1$
136
					"stepCreateConsole",    //$NON-NLS-1$
136
					"stepRunProgram",   //$NON-NLS-1$
137
					"stepRunProgram",   //$NON-NLS-1$
138
					"stepInitializeMemory",   //$NON-NLS-1$
137
					"stepSetReverseOff",   //$NON-NLS-1$
139
					"stepSetReverseOff",   //$NON-NLS-1$
138
					"stepEnableReverse",   //$NON-NLS-1$
140
					"stepEnableReverse",   //$NON-NLS-1$
139
					"stepContinue",   //$NON-NLS-1$
141
					"stepContinue",   //$NON-NLS-1$
Lines 408-413 Link Here
408
	}
410
	}
409
	
411
	
410
	/**
412
	/**
413
	 * Initialize the memory service with the data for given process.
414
	 * @since 4.2
415
	 */
416
	@Execute
417
	public void stepInitializeMemory(final RequestMonitor rm) {
418
		IGDBMemory memory = fTracker.getService(IGDBMemory.class);
419
		IMemoryDMContext memContext = DMContexts.getAncestorOfType(getContainerContext(), IMemoryDMContext.class);
420
		if (memory == null || memContext == null) {
421
			rm.done();
422
			return;
423
		}
424
		memory.initializeMemoryData(memContext, rm);
425
	}
426
	
427
	/**
411
	 * In case of a restart, we must mark reverse debugging as disabled because
428
	 * In case of a restart, we must mark reverse debugging as disabled because
412
	 * GDB has turned it off. We may have to turn it back on after.
429
	 * GDB has turned it off. We may have to turn it back on after.
413
	 */
430
	 */
(-)a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java (+19 lines)
Lines 45-53 Link Here
45
import org.eclipse.cdt.dsf.concurrent.RequestMonitorWithProgress;
45
import org.eclipse.cdt.dsf.concurrent.RequestMonitorWithProgress;
46
import org.eclipse.cdt.dsf.datamodel.DMContexts;
46
import org.eclipse.cdt.dsf.datamodel.DMContexts;
47
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext;
47
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext;
48
import org.eclipse.cdt.dsf.debug.service.IMemory.IMemoryDMContext;
48
import org.eclipse.cdt.dsf.gdb.launching.FinalLaunchSequence;
49
import org.eclipse.cdt.dsf.gdb.launching.FinalLaunchSequence;
49
import org.eclipse.cdt.dsf.gdb.launching.GdbLaunch;
50
import org.eclipse.cdt.dsf.gdb.launching.GdbLaunch;
50
import org.eclipse.cdt.dsf.gdb.service.IGDBBackend;
51
import org.eclipse.cdt.dsf.gdb.service.IGDBBackend;
52
import org.eclipse.cdt.dsf.gdb.service.IGDBMemory;
51
import org.eclipse.cdt.dsf.gdb.service.SessionType;
53
import org.eclipse.cdt.dsf.gdb.service.SessionType;
52
import org.eclipse.cdt.dsf.gdb.service.command.IGDBControl;
54
import org.eclipse.cdt.dsf.gdb.service.command.IGDBControl;
53
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext;
55
import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext;
Lines 171-176 Link Here
171
					"stepLoadImage",   //$NON-NLS-1$
173
					"stepLoadImage",   //$NON-NLS-1$
172
					
174
					
173
					"stepUpdateContainer",   //$NON-NLS-1$
175
					"stepUpdateContainer",   //$NON-NLS-1$
176
					
177
					"stepInitializeMemory",   //$NON-NLS-1$
174
					
178
					
175
					"stepSetArguments",   //$NON-NLS-1$
179
					"stepSetArguments",   //$NON-NLS-1$
176
					"stepSetEnvironmentVariables",   //$NON-NLS-1$
180
					"stepSetEnvironmentVariables",   //$NON-NLS-1$
Lines 472-477 Link Here
472
	}
476
	}
473
	
477
	
474
	/**
478
	/**
479
	 * Initialize the memory service with the data for given process.
480
	 * @since 4.2
481
	 */
482
	@Execute
483
	public void stepInitializeMemory(final RequestMonitor rm) {
484
		IGDBMemory memory = fTracker.getService(IGDBMemory.class);
485
		IMemoryDMContext memContext = DMContexts.getAncestorOfType(getContainerContext(), IMemoryDMContext.class);
486
		if (memory == null || memContext == null) {
487
			rm.done();
488
			return;
489
		}
490
		memory.initializeMemoryData(memContext, rm);
491
	}
492
	
493
	/**
475
	 * Specify the arguments to the program that will be run.
494
	 * Specify the arguments to the program that will be run.
476
	 * @since 8.2
495
	 * @since 8.2
477
	 */
496
	 */

Return to bug 413483