private DebugModule findDebugModule(ActionList c) { MFUCache modules = new MFUCache(); for (int i = 0; i < c.size(); i++) { Action a = c.getAction(i); DebugModule temp = null; switch (a.code) { case ActionConstants.sactionDefineFunction: case ActionConstants.sactionDefineFunction2: temp = findDebugModule(((DefineFunction)a).actionList); break; case ActionList.sactionLineRecord: if (((LineRecord)a).module != null) { temp = ((LineRecord)a).module; } break; } if (temp != null) { modules.add(temp); } } // ActionList may have actions pointing to more than one debug module because of #include, etc. // The majority wins. return(modules.topModule); }
private DebugModule findDebugModule(ActionList c) { MFUCache modules = new MFUCache(); for (int i = 0; i < c.size(); i++) { Action a = c.getAction(i); DebugModule temp = null; switch (a.code) { case ActionConstants.sactionDefineFunction: case ActionConstants.sactionDefineFunction2: temp = findDebugModule(((DefineFunction) a).actionList); break; case ActionList.sactionLineRecord: if (((LineRecord) a).module != null) { temp = ((LineRecord) a).module; } break; } if (temp != null) { modules.add(temp); } } // ActionList may have actions pointing to more than one debug module because of #include, etc. // The majority wins. return modules.topModule; }