Skip to content

feat: pause the program when Ctrl-C is pressed#24

Merged
lewisfm merged 5 commits into
mainfrom
ctrlc
Jul 12, 2026
Merged

feat: pause the program when Ctrl-C is pressed#24
lewisfm merged 5 commits into
mainfrom
ctrlc

Conversation

@lewisfm

@lewisfm lewisfm commented Jul 12, 2026

Copy link
Copy Markdown
Member

Adds an IRQ handler which listens for a Ctrl-C packet from GDB and, if received, installs a breakpoint that stops the program on the current instruction. This allows users to break out of spin loops and the like even when unanticipated.

Progress

  • Listen for Ctrl-C events and respond to them
  • Enter the debug monitor when a Ctrl-C is hit
  • Pause the program even if we've run out of hardware breakpoints

@lewisfm lewisfm added this to the Initial release milestone Jul 12, 2026
@lewisfm lewisfm self-assigned this Jul 12, 2026
@lewisfm lewisfm added the enhancement New feature or request label Jul 12, 2026
@lewisfm
lewisfm marked this pull request as ready for review July 12, 2026 23:36
@lewisfm
lewisfm merged commit 04828f4 into main Jul 12, 2026
6 checks passed
@lewisfm
lewisfm deleted the ctrlc branch July 12, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant