Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 192894 Details for
Bug 336890
[multi-process] Should stop tracking breakpoints when a process is no longer being debugged
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix to stopTrackingBreakpoints
z.patch (text/plain), 2.87 KB, created by
Marc Khouzam
on 2011-04-09 22:07:57 EDT
(
hide
)
Description:
Fix to stopTrackingBreakpoints
Filename:
MIME Type:
Creator:
Marc Khouzam
Created:
2011-04-09 22:07:57 EDT
Size:
2.87 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.dsf.gdb >Index: src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java,v >retrieving revision 1.10 >diff -u -r1.10 GDBProcesses_7_2.java >--- src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java 4 Apr 2011 01:47:57 -0000 1.10 >+++ src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_2.java 10 Apr 2011 02:02:36 -0000 >@@ -20,6 +20,8 @@ > import org.eclipse.cdt.dsf.datamodel.DMContexts; > import org.eclipse.cdt.dsf.datamodel.IDMContext; > import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext; >+import org.eclipse.cdt.dsf.debug.service.IRunControl.IContainerDMContext; >+import org.eclipse.cdt.dsf.debug.service.IRunControl.IExitedDMEvent; > import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext; > import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; > import org.eclipse.cdt.dsf.gdb.internal.GdbPlugin; >@@ -28,12 +30,13 @@ > import org.eclipse.cdt.dsf.mi.service.IMIContainerDMContext; > import org.eclipse.cdt.dsf.mi.service.IMIProcessDMContext; > import org.eclipse.cdt.dsf.mi.service.IMIRunControl; >+import org.eclipse.cdt.dsf.mi.service.IMIRunControl.MIRunMode; > import org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager; > import org.eclipse.cdt.dsf.mi.service.MIProcesses; >-import org.eclipse.cdt.dsf.mi.service.IMIRunControl.MIRunMode; > import org.eclipse.cdt.dsf.mi.service.command.CommandFactory; > import org.eclipse.cdt.dsf.mi.service.command.output.MIAddInferiorInfo; > import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo; >+import org.eclipse.cdt.dsf.service.DsfServiceEventHandler; > import org.eclipse.cdt.dsf.service.DsfSession; > import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.IStatus; >@@ -314,5 +317,24 @@ > Map<String, Object> attributes, DataRequestMonitor<IDMContext> rm) { > return new DebugNewProcessSequence_7_2(executor, isInitial, dmc, file, attributes, rm); > } >+ >+ /** >+ * @since 4.0 >+ */ >+ @DsfServiceEventHandler >+ @Override >+ public void eventDispatched(IExitedDMEvent e) { >+ IDMContext dmc = e.getDMContext(); >+ if (dmc instanceof IContainerDMContext) { >+ // A process has died, we should stop tracking its breakpoints >+ if (fBackend.getSessionType() != SessionType.CORE) { >+ IBreakpointsTargetDMContext bpTargetDmc = DMContexts.getAncestorOfType(dmc, IBreakpointsTargetDMContext.class); >+ MIBreakpointsManager bpmService = getServicesTracker().getService(MIBreakpointsManager.class); >+ bpmService.stopTrackingBreakpoints(bpTargetDmc, new RequestMonitor(ImmediateExecutor.getInstance(), null)); >+ } >+ } >+ >+ super.eventDispatched(e); >+ } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
marc.khouzam
:
iplog-
Actions:
View
|
Diff
Attachments on
bug 336890
:
192324
|
192410
| 192894