mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 06:09:50 +00:00
arj with flags quick fix (#5538)
This commit is contained in:
parent
58a58574e1
commit
1cab8b93b6
@ -1533,7 +1533,6 @@ static int cmd_anal_fcn(RCore *core, const char *input) {
|
||||
}
|
||||
if (!r_io_is_valid_offset (core->io, ref->addr, 1)) {
|
||||
continue;
|
||||
|
||||
}
|
||||
r_core_anal_fcn (core, ref->addr, fcn->addr, R_ANAL_REF_TYPE_CALL, depth);
|
||||
/* use recursivity here */
|
||||
@ -1622,7 +1621,6 @@ static void __anal_reg_list(RCore *core, int type, int size, char mode) {
|
||||
}
|
||||
}
|
||||
r_debug_reg_list (core->dbg, type, bits, mode, use_color);
|
||||
r_debug_reg_list (core->dbg, R_REG_TYPE_FLG, bits, mode, use_color);
|
||||
core->dbg->reg = hack;
|
||||
}
|
||||
|
||||
|
@ -101,6 +101,8 @@ R_API int r_debug_reg_list(RDebug *dbg, int type, int size, int rad, const char
|
||||
to = from + 1;
|
||||
}
|
||||
|
||||
to = R_MAX (to, R_REG_TYPE_FLG + 1);
|
||||
|
||||
int itmidx = -1;
|
||||
dbg->creg = NULL;
|
||||
for (i = from; i < to; i++) {
|
||||
@ -126,7 +128,7 @@ R_API int r_debug_reg_list(RDebug *dbg, int type, int size, int rad, const char
|
||||
}
|
||||
#endif
|
||||
if (type != -1) {
|
||||
if (type != item->type) continue;
|
||||
if (type != item->type && R_REG_TYPE_FLG != item->type) continue;
|
||||
if (size != 0 && size != item->size) continue;
|
||||
}
|
||||
value = r_reg_get_value (dbg->reg, item);
|
||||
|
Loading…
Reference in New Issue
Block a user