-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
Convert pv
commands to rzshell
#3069
Conversation
2b9dc19
to
8b88b47
Compare
8b88b47
to
2df902e
Compare
This comment was marked as resolved.
This comment was marked as resolved.
2df902e
to
0f347d2
Compare
ut8 *block = core->block; | ||
int blocksize = core->blocksize; | ||
ut8 *block_end = core->block + blocksize; | ||
|
||
if (block + 8 >= block_end) { | ||
RZ_LOG_ERROR("core: block is truncated.\n"); | ||
return false; | ||
} |
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.
I think the block concept can be removed and we can use rz_io_nread_at
instead. In any case, we can probably avoid the rz_core_seek
in the do/while loop below and just keep track of at
manually (you can use ps @ {addr}
in the print_value_single function).
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.
I would prefer to postpone this until converting to the API calls, after ps
are converted to the rzshell and a better API.
0f347d2
to
d54cf9a
Compare
d54cf9a
to
5a547fe
Compare
bd554a0
to
93050fb
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.
LGTM once that last comment is fixed.
93050fb
to
b40fb52
Compare
Your checklist for this pull request
Detailed description
pv
commands to rzshellpV
commands that are same aspv
but withuseBytes == true
. No tests exists for thosepvz
commands as undocumented and untestedTest plan
CI is green
Closing issues
Partially solves #1590