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

Convert as commands to the rzshell #2323

Merged
merged 1 commit into from
May 3, 2022
Merged

Convert as commands to the rzshell #2323

merged 1 commit into from
May 3, 2022

Conversation

XVilka
Copy link
Member

@XVilka XVilka commented Feb 14, 2022

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

  • asj now became aslj
  • ask was removed
  • as <name> became asn <name>
  • as, asca, asc take now only the number as the argument

I have a question though - should I ignore the name argument in asca and asc completely, or return it back and allow the argument to be either syscall number or syscall name?

Test plan

CI is green

Closing issues

Partially addresses #1442

@ret2libc
Copy link
Member

I have a question though - should I ignore the name argument in asca and asc completely, or return it back and allow the argument to be either syscall number or syscall name?

I think it's oki to accept just a string and recognize the type of argument, whether number or string.

librz/core/cmd/cmd_analysis.c Outdated Show resolved Hide resolved
librz/core/csyscall.c Show resolved Hide resolved
librz/core/cmd/cmd_analysis.c Show resolved Hide resolved
@XVilka XVilka changed the title Conver as commands to the rzshell Convert as commands to the rzshell Feb 15, 2022
@XVilka XVilka added the waiting-for-author Used to mark PRs where more work is needed label Mar 28, 2022
@XVilka XVilka added this to the 0.4.0 milestone Mar 28, 2022
@XVilka XVilka force-pushed the asan-as-rzshell branch 3 times, most recently from ece2ba0 to e0df62f Compare April 2, 2022 18:42
@XVilka XVilka requested a review from ret2libc May 1, 2022 11:43
@XVilka XVilka removed the waiting-for-author Used to mark PRs where more work is needed label May 2, 2022
librz/core/csyscall.c Outdated Show resolved Hide resolved
librz/core/cmd/cmd_analysis.c Show resolved Hide resolved
librz/core/cmd/cmd_analysis.c Outdated Show resolved Hide resolved
@XVilka XVilka requested a review from ret2libc May 3, 2022 08:17
@XVilka XVilka merged commit c42dd5d into dev May 3, 2022
@XVilka XVilka deleted the asan-as-rzshell branch May 3, 2022 10:06
wingdeans pushed a commit to wingdeans/rizin that referenced this pull request May 13, 2022
wingdeans pushed a commit to wingdeans/rizin that referenced this pull request May 13, 2022
nyoxi added a commit to nyoxi/rizin-book that referenced this pull request Oct 30, 2023
PR #2323 [1] removed `ask` command and `asl` does not accept an argument
any more. Instead there are two new commands `asn` and `asr` to query
for number or name respectively.

[1] rizinorg/rizin#2323

Signed-off-by: Tomáš Golembiovský <[email protected]>
wargio pushed a commit to rizinorg/book that referenced this pull request Oct 31, 2023
PR #2323 [1] removed `ask` command and `asl` does not accept an argument
any more. Instead there are two new commands `asn` and `asr` to query
for number or name respectively.

[1] rizinorg/rizin#2323

Signed-off-by: Tomáš Golembiovský <[email protected]>
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.

3 participants