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

Bug 304618

Summary: [commands] Most MICommands set parameters as options
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: pawel.1.piech
Version: 6.0Flags: marc.khouzam: review? (pawel.1.piech)
Target Milestone: 7.0   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix
marc.khouzam: iplog-
Final fix marc.khouzam: iplog-

Description Marc Khouzam CLA 2010-03-03 23:47:22 EST
Created attachment 160888 [details]
Fix

The MICommand class copied from CDI has the following constructor:

    public MICommand(IDMContext ctx, String operation, String[] options)

but in CDI it was

    public MICommand(IDMContext ctx, String operation, String[] params)

since we copied most MICommands from CDI, all the ones that use this constructor mistakenly set parameters as options.

This patch reverts the constructor to what it was for CDI, and cleans up some MI commands that didn't set options/parameters properly.

I have to run a few tests and the JUnit tests before committing.
Comment 1 Marc Khouzam CLA 2010-03-04 08:59:58 EST
Created attachment 160935 [details]
Final fix

This is the patch I committed to HEAD.  All JUnit tests pass for GDB 6.8 on Linux.
Comment 2 Marc Khouzam CLA 2010-03-04 09:00:38 EST
Pawel, does this make sense to you?