Skip to content

Commit

Permalink
iii
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Dec 9, 2024
1 parent dcb60f4 commit 0b3b185
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libr/asm/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static bool filter(RAsmPluginSession *aps, ut64 addr, RFlag *f, RAnalHint *hint,
const char *name = fcn->name;
// TODO: implement realname with flags, because functions dont hold this yet
if (f->realnames) {
flag = p->flag_get (f, off);
flag = p->flag_get (f, false, off);
if (flag && flag->realname) {
name = flag->realname;
}
Expand All @@ -235,10 +235,10 @@ static bool filter(RAsmPluginSession *aps, ut64 addr, RFlag *f, RAnalHint *hint,
bool lea = x86 && r_str_startswith (data, "lea")
&& (data[3] == ' ' || data[3] == 0x1b);
bool remove_brackets = false;
flag = p->flag_get (f, off);
flag = p->flag_get (f, false, off);
if ((!flag || arm) && p->subrel_addr) {
remove_brackets = lea || (arm && p->subrel_addr);
flag2 = p->flag_get (f, p->subrel_addr);
flag2 = p->flag_get (f, false, p->subrel_addr);
if (!flag || arm) {
flag = flag2;
}
Expand Down

0 comments on commit 0b3b185

Please sign in to comment.