mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-25 23:34:57 +00:00
Put registers in their own flagspace
This commit is contained in:
parent
a0885d7ec6
commit
ed208edcd9
@ -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"
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user