diff --git a/libr/core/clist.c b/libr/core/clist.c index 61396ca4dc909..6639108b06212 100644 --- a/libr/core/clist.c +++ b/libr/core/clist.c @@ -69,6 +69,10 @@ R_API int r_core_list_io(RCore *core, const char *name, int mode) { if (name && strcmp (plugin_name, name)) { continue; } + str[0] = 'r'; + str[1] = plugin->write ? 'w' : '_'; + str[2] = plugin->isdbg ? 'd' : '_'; + str[3] = 0; if (mode == 'j') { pj_o (pj); pj_ks (pj, "permissions", str); @@ -99,10 +103,6 @@ R_API int r_core_list_io(RCore *core, const char *name, int mode) { } r_cons_printf ("sysc: %s\n", r_str_bool (plugin->system)); } else { - str[0] = 'r'; - str[1] = plugin->write ? 'w' : '_'; - str[2] = plugin->isdbg ? 'd' : '_'; - str[3] = 0; r_cons_printf ("%s %-8s %s.", str, r_str_get (plugin->meta.name), r_str_get (plugin->meta.desc)); diff --git a/libr/debug/p/native/linux/linux_debug.c b/libr/debug/p/native/linux/linux_debug.c index 86968cf1a74b8..76ce35a22d91c 100644 --- a/libr/debug/p/native/linux/linux_debug.c +++ b/libr/debug/p/native/linux/linux_debug.c @@ -155,8 +155,9 @@ int linux_handle_signals(RDebug *dbg, int tid) { break; } if (dbg->reason.signum != SIGTRAP && (dbg->reason.signum != SIGINT || !r_cons_is_breaked ())) { - eprintf ("[+] SIGNAL %d errno=%d addr=0x%08"PFMT64x " code=%d si_pid=%d ret=%d\n", - siginfo.si_signo, siginfo.si_errno, + const char *name = r_signal_tostring (dbg->reason.signum); + eprintf ("[+] SIGNAL %d (aka %s) errno=%d addr=0x%08"PFMT64x " code=%d si_pid=%d ret=%d\n", + siginfo.si_signo, name, siginfo.si_errno, (ut64) (size_t)siginfo.si_addr, siginfo.si_code, siginfo.si_pid, ret); } return true;