Skip to content

Conversation

@MaartenS11
Copy link
Member

@MaartenS11 MaartenS11 commented Dec 19, 2023

Step over does not work if the current opcode is a call instruction and there is a breakpoint on it. The handleSTEP function skips breakpoints but if the current opcode is a call or indirect call instruction we just set a mark and put the vm in running state. If the current pc is a breakpoint the vm never goes any further because it instantly hits the breakpoint.

@MaartenS11 MaartenS11 added the bug label Dec 19, 2023
@MaartenS11 MaartenS11 requested a review from tolauwae December 19, 2023 12:53
@MaartenS11 MaartenS11 self-assigned this Dec 19, 2023
@tolauwae tolauwae force-pushed the fix/step-over-call-at-breakpoint branch from 87c0b32 to 82d14b1 Compare December 19, 2023 13:54
@tolauwae tolauwae merged commit f21ae3e into main Dec 19, 2023
@tolauwae tolauwae deleted the fix/step-over-call-at-breakpoint branch December 19, 2023 13:55
Copy link
Member

@tolauwae tolauwae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants