Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger #46

Draft
wants to merge 276 commits into
base: main
Choose a base branch
from
Draft

Debugger #46

wants to merge 276 commits into from

Conversation

dxrcy
Copy link
Contributor

@dxrcy dxrcy commented Oct 5, 2024

See proposal: #43

Copy link
Owner

@rozukke rozukke left a comment

Choose a reason for hiding this comment

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

No major qualms with what I can see, though obviously there is code duplication that can be improved after both use-cases are a bit more set in stone. I've skimmed over it, but will take a more detailed read today or tomorrow.

src/lexer/mod.rs Outdated Show resolved Hide resolved
Copy link
Contributor Author

@dxrcy dxrcy Jan 7, 2025

Choose a reason for hiding this comment

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

Keep in mind that a user will rarely have more than ~3 breakpoints, so performance isn't important.

/// Add the `orig` address to each [`Breakpoint`] item.
///
/// Should only be called once per program run.
pub fn with_orig(mut self, orig: u16) -> Self {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

More explicit than &mut self when calling

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Error messages (and enum variant names) may need to change

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