diff --git a/libr/core/cmd_debug.c b/libr/core/cmd_debug.c index b48db12bf1..1bd98ee31b 100644 --- a/libr/core/cmd_debug.c +++ b/libr/core/cmd_debug.c @@ -2908,13 +2908,11 @@ static void cmd_debug_reg(RCore *core, const char *str) { case '*': // "dr*" if (r_debug_reg_sync (core->dbg, R_REG_TYPE_GPR, false)) { int pcbits2, pcbits = grab_bits (core, str + 1, &pcbits2); - r_cons_printf ("fs+regs\n"); r_debug_reg_list (core->dbg, R_REG_TYPE_GPR, pcbits, NULL, '*', use_color); if (pcbits2) { r_debug_reg_list (core->dbg, R_REG_TYPE_GPR, pcbits2, NULL, '*', use_color); } r_flag_space_pop (core->flags); - r_cons_printf ("fs-\n"); } break; case 'i': // "dri" diff --git a/libr/debug/dreg.c b/libr/debug/dreg.c index cca52e0d81..fd860c0384 100644 --- a/libr/debug/dreg.c +++ b/libr/debug/dreg.c @@ -135,6 +135,9 @@ R_API bool r_debug_reg_list(RDebug *dbg, int type, int size, PJ *pj, int rad, co if (!head) { return false; } + if (rad == 1 || rad == '*') { + dbg->cb_printf ("fs+%s\n", R_FLAGS_FS_REGISTERS); + } r_list_foreach (head, iter, item) { ut64 value; utX valueBig; @@ -279,6 +282,9 @@ R_API bool r_debug_reg_list(RDebug *dbg, int type, int size, PJ *pj, int rad, co } n++; } + if (rad == 1 || rad == '*') { + dbg->cb_printf ("fs-\n"); + } beach: if (isJson) { pj_end (pj); diff --git a/libr/include/r_core.h b/libr/include/r_core.h index 042cd82e4a..1e6da7dafe 100644 --- a/libr/include/r_core.h +++ b/libr/include/r_core.h @@ -56,6 +56,7 @@ R_LIB_VERSION_HEADER(r_core); #define R_FLAGS_FS_FUNCTIONS "functions" #define R_FLAGS_FS_IMPORTS "imports" #define R_FLAGS_FS_RELOCS "relocs" +#define R_FLAGS_FS_REGISTERS "registers" #define R_FLAGS_FS_RESOURCES "resources" #define R_FLAGS_FS_SECTIONS "sections" #define R_FLAGS_FS_SEGMENTS "segments"