mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-06 08:18:21 +00:00
AS3 debugger start halt fix
AS2 debugger - offsets fix, functions fix
This commit is contained in:
@@ -1099,7 +1099,7 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
}
|
||||
}
|
||||
|
||||
getASMs(true); // Add scriptNames to ASMs
|
||||
getASMs(true); // Add scriptNames to ASMs
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -974,7 +974,17 @@ public abstract class Action implements GraphSourceItem {
|
||||
ip++;
|
||||
continue;
|
||||
}
|
||||
if (stack.isEmpty()) {
|
||||
|
||||
//FunctionActionItem after DefineFunction(/2) are left on the stack. For linestart offsets we consider this kind of stack empty.
|
||||
boolean isStackEmpty = true;
|
||||
for (int i = 0; i < stack.size(); i++) {
|
||||
if ((!(stack.get(i) instanceof FunctionActionItem))) {
|
||||
isStackEmpty = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (isStackEmpty) {
|
||||
localData.lineStartAction = action;
|
||||
fi.setVal(action);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
public class TraceActionItem extends ActionItem {
|
||||
|
||||
public TraceActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) {
|
||||
super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value);
|
||||
super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user