-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Debugger #46
Conversation
There was a problem hiding this 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.
Instead of `-d`/`--debugger-input`
This will get changed at some point, but I need it right now for development
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
src/debugger/error.rs
Outdated
There was a problem hiding this comment.
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
See proposal: #43