Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334463

Summary: [run control] Need a way to know if we are in non-stop mode
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Marc Khouzam <marc.khouzam>
Status: RESOLVED FIXED QA Contact: Marc Khouzam <marc.khouzam>
Severity: normal    
Priority: P3 CC: cdtdoug, eclipse.sprigogin, ken.ryall, nobody, pawel.1.piech
Version: 8.0Flags: marc.khouzam: review? (pawel.1.piech)
Target Milestone: 8.0   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix marc.khouzam: iplog-

Description Marc Khouzam CLA 2011-01-15 14:46:18 EST
Created attachment 186878 [details]
Fix

DSF-GDB supports both all-stop and non-stop mode.  However, there is currently no easy way for different services to find out which mode is being used by the debug session.

The below fix adds method getRunMode() to IMIRunControl.  I tried to make the RunMode concept easy to extend for debuggers that may have some mode other than all-stop or non-stop.
Comment 1 Marc Khouzam CLA 2011-01-15 14:50:26 EST
Pawel, this changes seems to me like it would fit quite well in DSF itself.

Ken, is this something you want for EDC?

The current patch is for DSF-GDB, but I can create an IRunControl3 if you want to have this change in DSF.

If not, I'll commit the change to DSF-GDB early next week.

Thanks
Comment 2 Marc Khouzam CLA 2011-01-21 13:42:33 EST
Committed the patch to HEAD.

Pawel, can you review?