-
-
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
px
to rzshell
#2853
px
to rzshell
#2853
Conversation
- `pxd` -> `pxd 4` - `pxd<N> [len]` -> `pxd <N> [len]`
- `rz_core_print_cmp` - `rz_core_print_dump` - `rz_core_print_hexdump_` - `rz_core_print_hexdump_byline`
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]>
# Conflicts: # librz/core/cmd/cmd_print.c # librz/core/cprint.c # librz/include/rz_util/rz_print.h # librz/main/rz-find.c # librz/util/print.c
- `pxAv` -> `pxAl` - `pxt.` -> removed ? - `px/` -> keep - `pxf` -> TODO: not found old code ?
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.
Will review
RZ_API RZ_OWN char *rz_core_print_hexdump_diff_str(RZ_NONNULL RzCore *core, ut64 aa, ut64 ba, ut64 len); | ||
RZ_API RZ_OWN char *rz_core_print_dump_str(RZ_NONNULL RzCore *core, RzOutputMode mode, ut64 addr, ut8 n, int len, RzCorePrintFormatType format); | ||
RZ_API RZ_OWN char *rz_core_print_hexdump_or_hexdiff_str(RZ_NONNULL RzCore *core, RzOutputMode mode, ut64 addr, int len, bool use_comment); | ||
RZ_API RZ_OWN char *rz_core_print_hexdump_byline_str(RZ_NONNULL RzCore *core, bool hex_offset, ut64 addr, int len, ut8 size); | ||
|
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.
IIRC we said these functions should actually print and not be called _str
(probably _print
). Cutter or others can use internal functions like rz_print_hexdiff_str
and similar, right?
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.
@ret2libc if they print they should not be an API, if they should be an API they should return a string. Having an API returning nothing and just printing to the screen is absolutely useless from the user point of view.
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 moved these to librz/core/core_private.h
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.
@XVilka we use those kind of rzcore APIs in cases where we need to print the same things in different places (e.g. rz_core_asm_plugins_print
). But yes, if we think it's not needed right now, let's not make them APIs.
Your checklist for this pull request
Detailed description
3/n of #2813
pxd
->pxdw
pxd1
->pxd
pxd2
->pxdh
pxd4
->pxdw
pxd8
->pxdq
pxAv
->pxAl
pxt.
-> removed ?px/
-> keeppxf
-> TODO: not found old code ?Test plan
...
Closing issues
...