From 3ad6e786ade0b01729e43b71fee2ef2d43b56573 Mon Sep 17 00:00:00 2001 From: Farhan Saiyed Date: Fri, 19 Jun 2026 19:14:11 +0530 Subject: [PATCH] Add missing spaces in R! help (#6528) --- librz/io/p/io_gdb.c | 26 +++++++++++++------------- librz/io/p/io_mach.c | 4 ++-- librz/io/p/io_procpid.c | 2 +- librz/io/p/io_ptrace.c | 12 ++++++------ librz/io/p/io_self.c | 18 +++++++++--------- librz/io/p/io_w32dbg.c | 2 +- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/librz/io/p/io_gdb.c b/librz/io/p/io_gdb.c index de890725c4..3a4039aef8 100644 --- a/librz/io/p/io_gdb.c +++ b/librz/io/p/io_gdb.c @@ -215,19 +215,19 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { return NULL; } if (cmd[0] == '?' || !strcmp(cmd, "help")) { - eprintf("Usage: R! [args]\n" - " R!pid - show targeted pid\n" - " R!pkt s - send packet 's'\n" - " R!rd - show reverse debugging availability\n" - " R!dsb - step backwards\n" - " R!dcb - continue backwards\n" - " R!monitor cmd - hex-encode monitor command and pass" + eprintf("Usage: R! [args]\n" + " R! pid - show targeted pid\n" + " R! pkt s - send packet 's'\n" + " R! rd - show reverse debugging availability\n" + " R! dsb - step backwards\n" + " R! dcb - continue backwards\n" + " R! monitor cmd - hex-encode monitor command and pass" " to target interpreter\n" - " R!detach [pid] - detach from remote/detach specific pid\n" - " R!inv.reg - invalidate reg cache\n" - " R!pktsz - get max packet size used\n" - " R!pktsz bytes - set max. packet size as 'bytes' bytes\n" - " R!exec_file [pid] - get file which was executed for" + " R! detach [pid] - detach from remote/detach specific pid\n" + " R! inv.reg - invalidate reg cache\n" + " R! pktsz - get max packet size used\n" + " R! pktsz bytes - set max. packet size as 'bytes' bytes\n" + " R! exec_file [pid] - get file which was executed for" " current/specified pid\n"); return NULL; } @@ -407,7 +407,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { desc->get_baddr = true; return NULL; } - eprintf("Try: 'R!?'\n"); + eprintf("Try: 'R! ?'\n"); return NULL; gdb_lock_leave: diff --git a/librz/io/p/io_mach.c b/librz/io/p/io_mach.c index 3095188114..be165ded53 100644 --- a/librz/io/p/io_mach.c +++ b/librz/io/p/io_mach.c @@ -488,7 +488,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { int pagesize = tsk_pagesize(fd); tsk_setperm(io, task, io->off, pagesize, perm); } else { - eprintf("Usage: R!perm [rwx]\n"); + eprintf("Usage: R! perm [rwx]\n"); } 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); } else { - eprintf("Try: 'R!pid' or 'R!perm'\n"); + eprintf("Try: 'R! pid' or 'R! perm'\n"); } return NULL; } diff --git a/librz/io/p/io_procpid.c b/librz/io/p/io_procpid.c index 31495f53c6..ab2b9c628a 100644 --- a/librz/io/p/io_procpid.c +++ b/librz/io/p/io_procpid.c @@ -117,7 +117,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { } io->cb_printf("%d\n", iop->pid); } else { - eprintf("Try: 'R!pid'\n"); + eprintf("Try: 'R! pid'\n"); } return NULL; } diff --git a/librz/io/p/io_ptrace.c b/librz/io/p/io_ptrace.c index ca3ed847c7..a7a58f26ae 100644 --- a/librz/io/p/io_ptrace.c +++ b/librz/io/p/io_ptrace.c @@ -305,11 +305,11 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { return NULL; } if (!strcmp(cmd, "help")) { - eprintf("Usage: R! [args]\n" - " R!ptrace - use ptrace io\n" - " R!mem - use /proc/pid/mem io if possible\n" - " R!pid - show targeted pid\n" - " R!pid <#> - select new pid\n"); + eprintf("Usage: R! [args]\n" + " R! ptrace - use ptrace io\n" + " R! mem - use /proc/pid/mem io if possible\n" + " R! pid - show targeted pid\n" + " R! pid <#> - select new pid\n"); } else if (!strcmp(cmd, "ptrace")) { close_pidmem(iop); } 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); } } else { - eprintf("Try: 'R!pid'\n"); + eprintf("Try: 'R! pid'\n"); } return NULL; } diff --git a/librz/io/p/io_self.c b/librz/io/p/io_self.c index c5930d1fe0..15abc7fdeb 100644 --- a/librz/io/p/io_self.c +++ b/librz/io/p/io_self.c @@ -372,7 +372,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { char *argv = rz_str_dup(cmd + 5); int argc = rz_str_word_set0(argv); if (argc == 0) { - eprintf("Usage: R!call [fcnptr] [a0] [a1] ...\n"); + eprintf("Usage: R! call [fcnptr] [a0] [a1] ...\n"); free(argv); return NULL; } @@ -498,16 +498,16 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { io_self->self_sections[i].name); } } else { - eprintf("Usage: R! [args]\n"); - eprintf(" R!pid show getpid()\n"); - eprintf(" R!maps show map regions\n"); - eprintf(" R!kill commit suicide\n"); + eprintf("Usage: R! [args]\n"); + eprintf(" R! pid show getpid()\n"); + eprintf(" R! maps show map regions\n"); + eprintf(" R! kill commit suicide\n"); #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 - eprintf(" R!dlsym [sym] dlopen\n"); - eprintf(" R!call [sym] [...] nativelly call a function\n"); - eprintf(" R!mameio enter mame IO mode\n"); + eprintf(" R! dlsym [sym] dlopen\n"); + eprintf(" R! call [sym] [...] nativelly call a function\n"); + eprintf(" R! mameio enter mame IO mode\n"); } return NULL; } diff --git a/librz/io/p/io_w32dbg.c b/librz/io/p/io_w32dbg.c index 7887189675..fb37aaf023 100644 --- a/librz/io/p/io_w32dbg.c +++ b/librz/io/p/io_w32dbg.c @@ -170,7 +170,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { } else if (!strncmp(cmd, "pid", 3)) { return rz_str_newf("%lu", wrap->pi.dwProcessId); } else { - eprintf("Try: 'R!pid'\n"); + eprintf("Try: 'R! pid'\n"); } return NULL; }