Add missing spaces in R! help (#6528)

This commit is contained in:
Farhan Saiyed 2026-06-19 19:14:11 +05:30 committed by GitHub
parent 9217b0a86a
commit 3ad6e786ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 32 additions and 32 deletions

View file

@ -215,19 +215,19 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
return NULL; return NULL;
} }
if (cmd[0] == '?' || !strcmp(cmd, "help")) { if (cmd[0] == '?' || !strcmp(cmd, "help")) {
eprintf("Usage: R!<cmd> [args]\n" eprintf("Usage: R! <cmd> [args]\n"
" R!pid - show targeted pid\n" " R! pid - show targeted pid\n"
" R!pkt s - send packet 's'\n" " R! pkt s - send packet 's'\n"
" R!rd - show reverse debugging availability\n" " R! rd - show reverse debugging availability\n"
" R!dsb - step backwards\n" " R! dsb - step backwards\n"
" R!dcb - continue backwards\n" " R! dcb - continue backwards\n"
" R!monitor cmd - hex-encode monitor command and pass" " R! monitor cmd - hex-encode monitor command and pass"
" to target interpreter\n" " to target interpreter\n"
" R!detach [pid] - detach from remote/detach specific pid\n" " R! detach [pid] - detach from remote/detach specific pid\n"
" R!inv.reg - invalidate reg cache\n" " R! inv.reg - invalidate reg cache\n"
" R!pktsz - get max packet size used\n" " R! pktsz - get max packet size used\n"
" R!pktsz bytes - set max. packet size as 'bytes' bytes\n" " R! pktsz bytes - set max. packet size as 'bytes' bytes\n"
" R!exec_file [pid] - get file which was executed for" " R! exec_file [pid] - get file which was executed for"
" current/specified pid\n"); " current/specified pid\n");
return NULL; return NULL;
} }
@ -407,7 +407,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
desc->get_baddr = true; desc->get_baddr = true;
return NULL; return NULL;
} }
eprintf("Try: 'R!?'\n"); eprintf("Try: 'R! ?'\n");
return NULL; return NULL;
gdb_lock_leave: gdb_lock_leave:

View file

@ -488,7 +488,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
int pagesize = tsk_pagesize(fd); int pagesize = tsk_pagesize(fd);
tsk_setperm(io, task, io->off, pagesize, perm); tsk_setperm(io, task, io->off, pagesize, perm);
} else { } else {
eprintf("Usage: R!perm [rwx]\n"); eprintf("Usage: R! perm [rwx]\n");
} }
return NULL; return NULL;
} }
@ -523,7 +523,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
} }
eprintf("io_mach_system: Invalid pid %d\n", pid); eprintf("io_mach_system: Invalid pid %d\n", pid);
} else { } else {
eprintf("Try: 'R!pid' or 'R!perm'\n"); eprintf("Try: 'R! pid' or 'R! perm'\n");
} }
return NULL; return NULL;
} }

View file

@ -117,7 +117,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
} }
io->cb_printf("%d\n", iop->pid); io->cb_printf("%d\n", iop->pid);
} else { } else {
eprintf("Try: 'R!pid'\n"); eprintf("Try: 'R! pid'\n");
} }
return NULL; return NULL;
} }

View file

@ -305,11 +305,11 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
return NULL; return NULL;
} }
if (!strcmp(cmd, "help")) { if (!strcmp(cmd, "help")) {
eprintf("Usage: R!<cmd> [args]\n" eprintf("Usage: R! <cmd> [args]\n"
" R!ptrace - use ptrace io\n" " R! ptrace - use ptrace io\n"
" R!mem - use /proc/pid/mem io if possible\n" " R! mem - use /proc/pid/mem io if possible\n"
" R!pid - show targeted pid\n" " R! pid - show targeted pid\n"
" R!pid <#> - select new pid\n"); " R! pid <#> - select new pid\n");
} else if (!strcmp(cmd, "ptrace")) { } else if (!strcmp(cmd, "ptrace")) {
close_pidmem(iop); close_pidmem(iop);
} else if (!strcmp(cmd, "mem")) { } else if (!strcmp(cmd, "mem")) {
@ -329,7 +329,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
return rz_str_newf("%d", iop->pid); return rz_str_newf("%d", iop->pid);
} }
} else { } else {
eprintf("Try: 'R!pid'\n"); eprintf("Try: 'R! pid'\n");
} }
return NULL; return NULL;
} }

View file

@ -372,7 +372,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
char *argv = rz_str_dup(cmd + 5); char *argv = rz_str_dup(cmd + 5);
int argc = rz_str_word_set0(argv); int argc = rz_str_word_set0(argv);
if (argc == 0) { if (argc == 0) {
eprintf("Usage: R!call [fcnptr] [a0] [a1] ...\n"); eprintf("Usage: R! call [fcnptr] [a0] [a1] ...\n");
free(argv); free(argv);
return NULL; return NULL;
} }
@ -498,16 +498,16 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
io_self->self_sections[i].name); io_self->self_sections[i].name);
} }
} else { } else {
eprintf("Usage: R!<cmd> [args]\n"); eprintf("Usage: R! <cmd> [args]\n");
eprintf(" R!pid show getpid()\n"); eprintf(" R! pid show getpid()\n");
eprintf(" R!maps show map regions\n"); eprintf(" R! maps show map regions\n");
eprintf(" R!kill commit suicide\n"); eprintf(" R! kill commit suicide\n");
#if !defined(__WINDOWS__) #if !defined(__WINDOWS__)
eprintf(" R!alarm [secs] setup alarm signal to raise rizin prompt\n"); eprintf(" R! alarm [secs] setup alarm signal to raise rizin prompt\n");
#endif #endif
eprintf(" R!dlsym [sym] dlopen\n"); eprintf(" R! dlsym [sym] dlopen\n");
eprintf(" R!call [sym] [...] nativelly call a function\n"); eprintf(" R! call [sym] [...] nativelly call a function\n");
eprintf(" R!mameio enter mame IO mode\n"); eprintf(" R! mameio enter mame IO mode\n");
} }
return NULL; return NULL;
} }

View file

@ -170,7 +170,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) {
} else if (!strncmp(cmd, "pid", 3)) { } else if (!strncmp(cmd, "pid", 3)) {
return rz_str_newf("%lu", wrap->pi.dwProcessId); return rz_str_newf("%lu", wrap->pi.dwProcessId);
} else { } else {
eprintf("Try: 'R!pid'\n"); eprintf("Try: 'R! pid'\n");
} }
return NULL; return NULL;
} }