Community
Participate
Working Groups
Build Identifier: In f7c4790c134d0cdc30cdbe8d2a016bf27cd25528 changes to DwarfDebugInfoProvider: the adding of the filterOutLocalVariables(List<IVariable> variables) method and the using of it to remove variables from the result of getVariablesByName(String name, boolean globalsOnly) causes a regression in that it removes all global variables and leaves most local ones - it has the opposite behaviour to that which was intended. Global variables have their scope as a IModuleScope and the test removes all variables which do not have their scope a ICompileUnit scope. Changing this to IModuleScope fixes this. Reproducible: Always
Created attachment 203693 [details] One line fix to fix this -> use IModuleScope instead
daniel, i hate to tell you discovered something we already have locally. we actually filter for both ICompileUnitScope & IModuleScope now, and i think we have the list of variables we want. the change will be in our next merge … though we have some other priorities at the moment.
(this is part of a batch change) The Eclipse CDT EDC (https://wiki.eclipse.org/CDT/cdt-debug-edc) is now obsolete and has not had any active development since 2011. Therefore the still open bugs are being marked as wontfix. The git repo for the project still exists for posterity at https://git.eclipse.org/c/cdt/org.eclipse.cdt.edc.git/