commit | 7c44a3911f15526dfa29ef048bf3df51f00ce359 | [log] [tgz] |
---|---|---|
author | Stephan Herrmann <stephan.herrmann@berlin.de> | Sat Aug 15 20:09:11 2020 +0200 |
committer | Stephan Herrmann <stephan.herrmann@berlin.de> | Sat Aug 15 20:09:11 2020 +0200 |
tree | 335a1b60928cb8073c19493a7df52e82a9d79959 | |
parent | 69b13119fe9df921af95c92645cbf24581d178db [diff] |
Bug 492938 - [otdre] adjust debug representation for otdre - associate synthetic code with startLine-1 to avoid breakpoints to fire before the code was actually entered
diff --git a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/CreateCallAllBindingsCallInOrgMethod.java b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/CreateCallAllBindingsCallInOrgMethod.java index 44608b1..1b41538 100644 --- a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/CreateCallAllBindingsCallInOrgMethod.java +++ b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/CreateCallAllBindingsCallInOrgMethod.java
@@ -86,6 +86,8 @@ int startLine = peekFirstLineNumber(method.instructions); if (startLine == -1) startLine = 1; + else if (startLine > 1) + startLine--; method.instructions.clear(); addLineNumber(newInstructions, startLine); generateInvocation(method, args, null, newInstructions);