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

Several debugger improvements #20

Merged
merged 8 commits into from
Aug 26, 2018
Merged

Several debugger improvements #20

merged 8 commits into from
Aug 26, 2018

Conversation

LukasKalbertodt
Copy link
Owner

@LukasKalbertodt LukasKalbertodt commented Aug 25, 2018

CC #18

See commit messages. Regarding review: again, debugger code isn't that beautiful. And it's not that critical, so I'd say a proper review is not necessary.

@LukasKalbertodt LukasKalbertodt requested a review from jovobe August 25, 2018 20:44
parse(try_from_str = "parse_breakpoint"),
requires = "debug",
help = "Breakpoint that is added to the debugger at the very beginning. Breakpoints are \
specified in hexadecimal.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

hexadecimal

An example for the exact format would be great! (e.g. 0x42 or 0x0042 or 42h or $42, etc.)

long = "--breakpoints",
parse(try_from_str = "parse_breakpoint"),
requires = "debug",
help = "Breakpoint that is added to the debugger at the very beginning. Breakpoints are \
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is not clear, if the user can pass one or many breakpoints (and if many, how they have to be separated (e.g. 0x42, 0x21 or 0x42;0x21 or 0x42 0x21 etc.)).

fn parse_breakpoint(src: &str) -> Result<Word, String> {
u16::from_str_radix(src, 16)
.map(Word::new)
.map_err(|e| format!("failed to parse breakpoint: {}", e))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the --help message triggered here? If not, information about the proper format would be helpful.

@jovobe
Copy link
Collaborator

jovobe commented Aug 26, 2018

Wait with this merge for #21.

@jovobe jovobe self-assigned this Aug 26, 2018
@LukasKalbertodt LukasKalbertodt merged commit 8bc3db6 into master Aug 26, 2018
@LukasKalbertodt LukasKalbertodt deleted the cli-breakpoints branch August 26, 2018 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants