Debug (breakpoints, step) P-code for both AS1/2 and AS3

This commit is contained in:
Jindra Petřík
2015-12-06 06:29:08 +01:00
parent e2c299afa0
commit 0724b4a3f0
75 changed files with 670 additions and 264 deletions
@@ -50,6 +50,18 @@ public class MethodCodePanel extends JPanel {
private final JToggleButton hexOnlyButton;
public void refreshMarkers() {
sourceTextArea.refreshMarkers();
}
public void clearDebuggerColors() {
sourceTextArea.removeColorMarkerOnAllLines(DecompiledEditorPane.IP_MARKER);
}
public void gotoInstrLine(int line) {
sourceTextArea.gotoInstrLine(line);
}
public void focusEditor() {
sourceTextArea.requestFocusInWindow();
}
@@ -74,12 +86,12 @@ public class MethodCodePanel extends JPanel {
sourceTextArea.hilighSpecial(type, specialValue);
}
public void setBodyIndex(int bodyIndex, ABC abc, Trait trait, int scriptIndex) {
sourceTextArea.setBodyIndex(bodyIndex, abc, sourceTextArea.getName(), trait, scriptIndex);
public void setBodyIndex(String scriptPathName, int bodyIndex, ABC abc, Trait trait, int scriptIndex) {
sourceTextArea.setBodyIndex(scriptPathName, bodyIndex, abc, sourceTextArea.getName(), trait, scriptIndex);
}
public void setBodyIndex(int bodyIndex, ABC abc, String name, Trait trait, int scriptIndex) {
sourceTextArea.setBodyIndex(bodyIndex, abc, name, trait, scriptIndex);
public void setBodyIndex(String scriptPathName, int bodyIndex, ABC abc, String name, Trait trait, int scriptIndex) {
sourceTextArea.setBodyIndex(scriptPathName, bodyIndex, abc, name, trait, scriptIndex);
}
public int getBodyIndex() {