Skip to content

Commit

Permalink
Fix radareorg#7473 - pdf boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 15, 2017
1 parent f5948a9 commit 0327540
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libr/core/cmd_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -3513,6 +3513,7 @@ static int cmd_print(void *data, const char *input) {
r_cons_printf ("]}\n");
pd_result = 0;
} else if (f) {
#if 0
for (; locs_it && (tmp_func = locs_it->data); locs_it = locs_it->n) {
if (tmp_func->addr > f->addr) {
break;
Expand All @@ -3521,11 +3522,14 @@ static int cmd_print(void *data, const char *input) {
r_core_cmdf (core, "pD %d @ 0x%08" PFMT64x, cont_size, tmp_func->addr);
}
cont_size = tmp_get_contsize (f);
r_core_cmdf (core, "pD %d @ 0x%08" PFMT64x, cont_size, f->addr);
#endif
r_core_cmdf (core, "pD %d @ 0x%08" PFMT64x, f->_size, f->addr);
#if 0
for (; locs_it && (tmp_func = locs_it->data); locs_it = locs_it->n) {
cont_size = tmp_get_contsize (tmp_func);
r_core_cmdf (core, "pD %d @ 0x%08" PFMT64x, cont_size, tmp_func->addr);
}
#endif
pd_result = 0;
} else {
eprintf ("pdf: Cannot find function at 0x%08"PFMT64x "\n", core->offset);
Expand Down

0 comments on commit 0327540

Please sign in to comment.