Skip to content

Commit

Permalink
Do not change seek when priorizing fds in iova=0 ##io
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 23, 2024
1 parent 31864f3 commit 5de4a42
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions libr/core/cbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1579,9 +1579,11 @@ static bool bin_entry(RCore *r, PJ *pj, int mode, ut64 laddr, int va, bool inifi
free (s);
r_table_free (table);
} else if (IS_MODE_SET (mode)) {
if (entry) {
ut64 at = rva (r->bin, entry->paddr, entry->vaddr, va);
r_core_seek (r, at, false);
if (r_config_get_b (r->config, "io.va")) {
if (entry) {
ut64 at = rva (r->bin, entry->paddr, entry->vaddr, va);
r_core_seek (r, at, false);
}
}
} else if (IS_MODE_RAD (mode)) {
r_cons_println ("'fs-");
Expand Down Expand Up @@ -4835,12 +4837,11 @@ R_API bool r_core_bin_info(RCore *core, int action, PJ *pj, int mode, int va, RC
}
if ((action & R_CORE_BIN_ACC_FIELDS)) {
if (IS_MODE_SIMPLE (mode)) {
// ret &= bin_fields (core, NULL, mode, va);
ret &= bin_fields (core, NULL, mode, va);
// ret &= bin_header (core, mode);
} else if (IS_MODE_NORMAL (mode)) {
// ret &= bin_header (core, mode);
ret &= bin_fields (core, NULL, mode, va);
// ret &= bin_header (core, mode);
} else {
if ((action & R_CORE_BIN_ACC_HEADER) || action & R_CORE_BIN_ACC_FIELDS) {
ret &= bin_fields (core, pj, mode, va);
Expand Down

0 comments on commit 5de4a42

Please sign in to comment.