Community
Participate
Working Groups
For fixing PR 70688. Now the type for int array[2][3] is define like: - ArrayType(2) --> int[2][3] - ArrayType (3) --> int[3] - IntegerType (int) --> int It seems that it was reverse before. I've commited in the head a fix for this: GDBTypeParser.java (mi plugin) CType.java (cdt.debug.core plugin) But the fixes should be move to 2_0_CDT branch and 1_2_1 branch
Fix in 1_2_1, 2_0 and head
I'd like to verify this, but not sure how... I've defined the int array[2][3] values and they show up correctly in the variables view. Is that all I need to do or was there a cast to type problem?
> I'd like to verify this, but not sure how... > I've defined the int array[2][3] > values and they show up correctly in the variables view. > Is that all I need to do or was there a cast to type problem? Yes, in the variable view, show the type. If in your code you have int array[2][3]; It used to show as the type for array int [3][2] Obviously this is wrong, the element indexes were reversed. It should say now int [2] [3] Thanks.
Alrighty then, I clicked the "show type names" button in the variables view and all is well. You get to mark this defect verified Alain, since I'm not the reporter. Thanks.
I verified in CDT 2.0.1 build 200408271356 and CDT 2.1.0 build 200408270300.
> You get to mark this defect verified Alain, since I'm not the reporter. > Thanks. Merci bucket for checking this.