-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
read_addrs()
can return fewer bytes than requested
#115
read_addrs()
can return fewer bytes than requested
#115
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.
all up this looks good!
oh, and I suppose I don't actually mention it anywhere (I really should): I use nightly rustfmt in gdbstub
to automatically wrap doc comments, so you'll have to fix that.
I’ve addressed all your comments. Sorry I took a while. |
all good :) I'll take a look in the next day or two |
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.
one minor doc issue + a clippy lint that needs to get resolved, but aside from that, this LGTM!
1dcf642
to
a28791a
Compare
I‘ve fixed the lint and the docs. Should be good to go know 🤞 |
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.
...sorry to keep nitpicking, but in my earlier comment, I also mentioned that you needed to fix both places that had the doc issue.
src/target/ext/base/multithread.rs
Outdated
/// to indicate that memory starting at `start_addr + n` cannot be | ||
/// accessed. | ||
/// | ||
/// Implemenations may also return an appropriate non-fatal if the requested |
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.
/// Implemenations may also return an appropriate non-fatal if the requested | |
/// Implemenations may also return an appropriate non-fatal error if the requested |
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.
My bad. I fixed the second instance too
The `read_addrs()` method for targets now returns a number of bytes that were read. This allows a target to gracefully signal the client that memory at an address range is not accessible. Signed-off-by: Thomas Scholtes <[email protected]>
a28791a
to
d024c17
Compare
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.
Thanks for getting this over the finish line, I appreciate it :)
The `read_addrs()` method for targets now returns a number of bytes that were read. This allows a target to gracefully signal the client that memory at an address range is not accessible. Signed-off-by: Thomas Scholtes <[email protected]>
Description
The
read_addrs()
method for targets now returns a number of bytes that were read. This allows a target to gracefully signal the client that memory at an address range is not accessible.I’ve implemented this functionality for the armv4t example to be able to test it.
Closes #111.
API Stability
This PR requires a breaking API change.
Checklist
cargo build
compiles withouterrors
orwarnings
cargo clippy
runs withouterrors
orwarnings
cargo fmt
was run(if appropriate) Added feature to "Debugging Features" in README.mdIf implementing a new protocol extension IDETIf upstreaming anArch
implementationI’m not sure how to update the changelog.
Validation
Read before accessible area
Read partially accessible memory
Read after accessible area