Debugging Goals #8

Open
opened 2025-07-22 11:55:14 -07:00 by affine · 0 comments
Owner

The output of this issue is more issues on the roadmap.

Figure out how debugging will be implemented. Loose notes:

  • A debugger can provide breakpoints by inserting a TRAP behind or in front of a target instruction
  • A debugger can provide a watchpoint-on-access by inspecting incoming instructions for matching operands
  • The debugger is an NCURSES interface that extends the program loader.

Unclear how this behaves when the user attempts to interact with a program as compiled code.

  • debug symbols need to be implemented (maybe as a trap that expands/contracts a moving stack of function names?
  • A debugger can provide a watchpoint-on-access and watchpoint-on-write by intercepting access to/from the symbol map
  • A debugger can provide breakpoints into compiled code if debug symbols are added to the code.... probably lol.
The output of this issue is more issues on the roadmap. Figure out how debugging will be implemented. Loose notes: - A debugger can provide breakpoints by inserting a TRAP behind or in front of a target instruction - A debugger can provide a watchpoint-on-access by inspecting incoming instructions for matching operands - The debugger is an NCURSES interface that extends the program loader. Unclear how this behaves when the user attempts to interact with a program as compiled code. - debug symbols need to be implemented (maybe as a trap that expands/contracts a moving stack of function names? - A debugger can provide a watchpoint-on-access and watchpoint-on-write by intercepting access to/from the symbol map - A debugger can provide breakpoints into compiled code if debug symbols are added to the code.... probably lol.
affine added this to the HyphaeVM Roadmap project 2025-07-22 11:55:14 -07:00
affine added a new dependency 2025-07-29 11:41:15 -07:00
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
Reference: affine/Mycelium#8
No description provided.