-
-
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 d
commands to rzshell
#2263
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.
Thanks for this, it will really help to have this merged!
I think right now the changes are really a lot and hard to review well though. Would it be feasible for you to split this PR into smaller ones? For example, start by converting dd
commands, then dmi
, etc. etc. Otherwise it becomes hard for me and others to review all changes and it may take a very long time to merge this.
It would be awesome to have this in.
librz/core/cmd_descs/cmd_debug.yaml
Outdated
- name: dd | ||
summary: > | ||
List file descriptors or Open | ||
/ Open and map that file into the UI | ||
cname: cmd_debug_dd | ||
args: | ||
- name: file | ||
type: RZ_CMD_ARG_TYPE_FILE | ||
optional: true |
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.
Split this into ddl
(list file descriptors) and dd <file>
(Open and map that file)
I think the "UI" part is wrong? What does it mean?
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 don't even know what it means.
rizin/librz/core/cmd/cmd_debug.c
Lines 71 to 72 in b3de515
"dd", "", "List file descriptors", | |
"dd", " <file>", "Open and map that file into the UI", |
librz/core/cmd_descs/cmd_debug.yaml
Outdated
summary: List closest symbol to the current address | ||
cname: cmd_debug_dmid | ||
args: [] | ||
# - name: dmiv |
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.
why commented?
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.
rizin/librz/core/cmd/cmd_debug.c
Lines 1232 to 1239 in b3de515
case ' ': // "dmi " | |
case '*': // "dmi*" | |
case 'v': // "dmiv" | |
case 'j': // "dmij" | |
case 'q': // "dmiq" | |
case 'a': // "dmia" | |
{ | |
const char *libname = NULL, *symname = NULL, *a0; |
Because they were processed together in the original, and then it still use RZ_MODE_SIMPLE
, RZ_MODE_JSON
, but now we seem to use RzOutputMode
.
And I haven't completely changed this part dmi
.
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.
dmiv
seems to be just an alias for dmm
Co-authored-by: Riccardo Schirone <[email protected]>
Co-authored-by: Riccardo Schirone <[email protected]>
Co-authored-by: Riccardo Schirone <[email protected]>
Co-authored-by: Riccardo Schirone <[email protected]>
move "List file descriptors" to `ddl` merge `dd*` to `ddl` `type: RZ_CMD_DESC_TYPE_ARGV_STATE`
…into asan-debug-rzshell
- use `oo` to replace `do`
…]]]` remove dmiv
c42ae8b
to
b279574
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.
Any chance you could split this PR in smaller ones?
I want to fix all the tests first. |
@imbillow shall we close this one then? |
yes |
Your checklist for this pull request
Detailed description
...
Test plan
...
Closing issues
Partially addresses #1342