Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sarah.grebing
ProofScriptParser
Commits
b1f5abcc
Commit
b1f5abcc
authored
Jan 18, 2018
by
Alexander Weigl
Browse files
fix to step into
parent
e8e9b298
Pipeline
#16976
failed with stages
in 1 minute and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rt
-key
/src/main/java/edu/kit/iti/formal/psdbg/StepIntoCommand.java
→
rt/src/main/java/edu/kit/iti/formal/psdbg/
interpreter/dbg/
StepIntoCommand.java
View file @
b1f5abcc
package
edu.kit.iti.formal.psdbg
;
import
edu.kit.iti.formal.psdbg.interpreter.dbg.*
;
package
edu.kit.iti.formal.psdbg.interpreter.dbg
;
public
class
StepIntoCommand
<
T
>
extends
DebuggerCommand
<
T
>
{
@Override
public
void
execute
(
DebuggerFramework
<
T
>
dbg
)
{
PTreeNode
<
T
>
statePointer
=
dbg
.
getStatePointer
();
assert
statePointer
!=
null
;
if
(
statePointer
.
isAtomic
())
{
if
(
statePointer
.
isAtomic
())
{
// atomic same as step over
new
StepOverCommand
<
T
>().
execute
(
dbg
);
}
else
{
dbg
.
releaseUntil
(
new
Blocker
.
CounterBlocker
(
1
));
if
(
statePointer
.
getStepInto
()
!=
null
)
{
// if there is already an step into take it!
dbg
.
setStatePointer
(
statePointer
.
getStepInto
());
}
else
{
if
(!
statePointer
.
isLastNode
())
{
// execute non last commands, one step wide!
dbg
.
releaseUntil
(
new
Blocker
.
CounterBlocker
(
1
));
}
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment