mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-16 09:47:00 +00:00
Fix iSS= iS=, iSS* and iS* issues
This commit is contained in:
parent
63ccf0da09
commit
d7d92d584b
@ -2382,13 +2382,13 @@ static int bin_sections(RCore *r, int mode, ut64 laddr, int va, ut64 at, const c
|
||||
RBinSection *s;
|
||||
r_list_foreach (sections, iter, s) {
|
||||
char humansz[8];
|
||||
if (print_segments != s->is_segment) {
|
||||
continue;
|
||||
}
|
||||
RInterval pitv = (RInterval){s->paddr, s->size};
|
||||
RInterval vitv = (RInterval){s->vaddr, s->vsize};
|
||||
r_num_units (humansz, sizeof (humansz), s->size);
|
||||
RListInfo *info = r_listinfo_new (s->name, pitv, vitv, s->perm, strdup (humansz));
|
||||
if (!info) {
|
||||
break;
|
||||
}
|
||||
r_list_append (list, info);
|
||||
}
|
||||
r_core_visual_list (r, list, r->offset, -1, cols, r->print->flags & R_PRINT_FLAGS_COLOR);
|
||||
@ -2481,7 +2481,9 @@ static int bin_sections(RCore *r, int mode, ut64 laddr, int va, ut64 at, const c
|
||||
if (!bits) {
|
||||
bits = R_SYS_BITS;
|
||||
}
|
||||
if (IS_MODE_SET (mode)) {
|
||||
if (IS_MODE_RAD (mode)) {
|
||||
r_cons_printf ("f %s.%s = 0x%08"PFMT64x"\n", type, section->name, section->vaddr);
|
||||
} else if (IS_MODE_SET (mode)) {
|
||||
#if LOAD_BSS_MALLOC
|
||||
if (!strcmp (section->name, ".bss")) {
|
||||
// check if there's already a file opened there
|
||||
|
@ -620,12 +620,15 @@ static int cmd_info(void *data, const char *input) {
|
||||
int param_shift = 0;
|
||||
if (input[1] == 'S') {
|
||||
name = "segments";
|
||||
input++;
|
||||
action = R_CORE_BIN_ACC_SEGMENTS;
|
||||
param_shift = 1;
|
||||
}
|
||||
// case for iS=
|
||||
if (input[1] == '=') {
|
||||
mode = R_MODE_EQUAL;
|
||||
} else if (input[1] == '*') {
|
||||
mode = R_MODE_RADARE;
|
||||
} else if (input[1] == 'q' && input[2] == '.') {
|
||||
mode = R_MODE_SIMPLE;
|
||||
} else if (input[1] == 'j' && input[2] == '.') {
|
||||
|
Loading…
Reference in New Issue
Block a user