Skip to content

Feat: debug exception stop reason#297

Merged
Wenzel merged 2 commits intointel:mainfrom
Wenzel:feat/debug-exception-stop-reason
Mar 4, 2026
Merged

Feat: debug exception stop reason#297
Wenzel merged 2 commits intointel:mainfrom
Wenzel:feat/debug-exception-stop-reason

Conversation

@Wenzel
Copy link
Contributor

@Wenzel Wenzel commented Mar 3, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances solution stop reporting by attaching the triggering exception/breakpoint identifier to the SolutionKind, improving the debug signal when the simulator is stopped due to these events.

Changes:

  • Extend SolutionKind::Exception and SolutionKind::Breakpoint to include a number: i64.
  • Update solution classification matching to handle the new struct-style enum variants.
  • Populate the new number field in on_exception and on_breakpoint_memop stop reasons.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/state/mod.rs Adds numeric context to SolutionKind for exception/breakpoint solutions.
src/haps/mod.rs Updates match arms and stop invocations to construct the new SolutionKind variants with IDs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Wenzel Wenzel force-pushed the feat/debug-exception-stop-reason branch from 8e40311 to d55ff31 Compare March 3, 2026 14:06
@Wenzel Wenzel force-pushed the feat/debug-exception-stop-reason branch from d55ff31 to 6dfc450 Compare March 3, 2026 21:11
@Wenzel Wenzel merged commit c209952 into intel:main Mar 4, 2026
24 checks passed
@Wenzel Wenzel deleted the feat/debug-exception-stop-reason branch March 4, 2026 08:40
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.

2 participants