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

Port debug commands to RzShell #4753

Merged
merged 15 commits into from
Dec 6, 2024
Merged

Port debug commands to RzShell #4753

merged 15 commits into from
Dec 6, 2024

Conversation

Rot127
Copy link
Member

@Rot127 Rot127 commented Nov 29, 2024

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

  • Remove dmiv command, since it is an alias for dmi
  • Removes dta command:
    Originally it limited the addresses to trace.
    But it was not used in any test, and the implementation was not optimal.
    It allowed only specific addresses (no range).
    Also worked on strings (not ut64 values).
    Also, the usefulness is limited, considering the alternative
    to just not tracing a certain address.
  • Removes undocumented dmias command, because no idea what it does.

Test plan

...

Closing issues

...

Originally it limited the addresses to trace.
But it was not used in any test, and the implementation was not optimal.
It allowed only specific addresses (no range).
Also worked on strings (not ut64 values).
Also, the usefulness is limited, considering the alternative
to just not tracing a certain address.
librz/core/cdebug.c Outdated Show resolved Hide resolved
librz/include/rz_cmd.h Show resolved Hide resolved
This also removes the test for dmias.
The command was not documented and it doesn't seem to
do anything special dmia can't do.
@Rot127 Rot127 marked this pull request as ready for review December 2, 2024 17:01
Copy link
Member

@XVilka XVilka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wargio take a look please

@XVilka
Copy link
Member

XVilka commented Dec 3, 2024

@Rot127 could you please resend this PR from inside rizinorg with a branch starting from dist- to trigger all CI jobs?

The debug log was printed via eprintf and now via RZ_LOG_INFO.
Hence it is gone.
Copy link
Member

@wargio wargio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, beside that small comment

@wargio

This comment was marked as resolved.

@XVilka XVilka merged commit 87b7591 into rizinorg:dev Dec 6, 2024
45 checks passed
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