-
-
Notifications
You must be signed in to change notification settings - Fork 378
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
This comment was marked as resolved.
This comment was marked as resolved.
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.
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.
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