[morley-debugger#10] Fix debugger cursor jumping on extra instructions
requested to merge heitor.toledo/morley-debugger#10-fix-debugger-cursor-jumping-on-ext-instructions into master
Description
Currently, when type-checking the STACKTYPE
and FN
extra instructions, two problems occur (with their solutions):
-
- Problem:
STACKTYPE
is converted to aNop
, which may include aWithLoc
as well. It's bizarre and confuses the debugger. - Solution: Add
STACKTYPE
typedExtInstr
. Patch the type-checker to include such instruction.
- Problem:
-
- Problem:
FN
is inlined in thecode
block and itsWithLoc
meta-instructions will point at the typed stack function definition, with no reference to its usage site. - Solution: Add typed
Fn
meta-instruction. Patch the type-checker to include such instruction and add aWithLoc
when producing such instruction as well.
- Problem:
See also: morley-debugger!14 (merged)
Related issue(s)
Pre-requisite to solve morley-debugger#10 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Heitor Toledo Lassarote de Paula