Add detailed Cf?

This commit is contained in:
SchumBlubBlub 2017-02-09 13:28:43 +00:00 committed by radare
parent b6344612a3
commit 0a63c58f33

View File

@ -414,8 +414,21 @@ static int cmd_meta_hsdmf(RCore *core, const char *input) {
switch (input[1]) {
case '?':
eprintf ("See C?\n");
break;
switch (input[0]) {
case 'f':
r_cons_println(
"Usage: Cf[-] [sz] [fmt..] [@addr]\n\n"
"'sz' indicates the byte size taken up by struct.\n"
"'fmt' is a 'pf?' style format string. It controls only the display format.\n\n"
"You may wish to have 'sz' != sizeof(fmt) when you have a large struct\n"
"but have only identified specific fields in it. In that case, use 'fmt'\n"
"to show the fields you know about (perhaps using 'skip' fields), and 'sz'\n"
"to match the total struct size in mem.\n");
break;
default:
eprintf ("See C?\n");
break;
}
case '-':
switch (input[2]) {
case '*':
@ -789,7 +802,7 @@ static int cmd_meta(void *data, const char *input) {
"Cz", "[@addr]", "add zero-terminated string",
"Ch", "[-] [size] [@addr]", "hide data",
"Cd", "[-] [size] [repeat] [@addr]", "hexdump data array (Cd 4 10 == dword [10])",
"Cf", "[-] [sz] [0|cnt][fmt..] [@addr]", "format memory (see pf?)",
"Cf", "[?][-] [sz] [0|cnt][fmt] [a0 a1...] [@addr]", "format memory (see pf?)",
"CF", "[sz] [fcn-sign..] [@addr]", "function signature",
"Cm", "[-] [sz] [fmt..] [@addr]", "magic parse (see pm?)",
NULL};