Skip to content

Commit

Permalink
Add 'p8b' as an alias for 'p8 $BS@$BB' ##print
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 18, 2024
1 parent f79146e commit c42a2af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libr/core/cmd_print.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static RCoreHelpMessage help_msg_p8 = {
"Usage: p8[*fjx]", " [len]", "8bit hexpair list of bytes (see pcj)",
"p8", " ([len])", "print hexpairs string",
"p8*", "", "display r2 commands to write this block",
"p8b", "", "print hexpairs of basic block",
"p8d", "", "space separated list of byte values in decimal",
"p8f", "", "print hexpairs of function (linear)",
"p8j", "", "print hexpairs in JSON array",
Expand Down Expand Up @@ -8680,6 +8681,8 @@ static int cmd_print(void *data, const char *input) {
r_cons_printf ("%d ", block[i]);
}
r_cons_newline ();
} else if (input[1] == 'b') { // "p8b"
r_core_cmdf (core, "p8 $BS @ $BB");
} else if (input[1] == 'f') { // "p8f"
r_core_cmdf (core, "p8 $FS @ $FB");
} else {
Expand Down

0 comments on commit c42a2af

Please sign in to comment.