|
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 |
*/ |