}
static void annotate_browser__set_top(struct annotate_browser *browser,
- struct disasm_line *pos, u32 idx)
+ struct annotation_line *pos, u32 idx)
{
unsigned back;
browser->b.top_idx = browser->b.index = idx;
while (browser->b.top_idx != 0 && back != 0) {
- pos = list_entry(pos->al.node.prev, struct disasm_line, al.node);
+ pos = list_entry(pos->node.prev, struct annotation_line, node);
- if (disasm_line__filter(&browser->b, &pos->al.node))
+ if (disasm_line__filter(&browser->b, &pos->node))
continue;
--browser->b.top_idx;
--back;
}
- browser->b.top = &pos->al;
+ browser->b.top = pos;
browser->b.navkeypressed = true;
}
struct rb_node *nd)
{
struct browser_line *bpos;
- struct disasm_line *pos;
+ struct annotation_line *pos;
u32 idx;
- pos = rb_entry(nd, struct disasm_line, al.rb_node);
- bpos = browser_line(&pos->al);
+ pos = rb_entry(nd, struct annotation_line, rb_node);
+ bpos = browser_line(pos);
idx = bpos->idx;
if (annotate_browser__opts.hide_src_code)
static bool annotate_browser__toggle_source(struct annotate_browser *browser)
{
- struct disasm_line *dl;
+ struct annotation_line *al;
struct browser_line *bl;
off_t offset = browser->b.index - browser->b.top_idx;
browser->b.seek(&browser->b, offset, SEEK_CUR);
- dl = list_entry(browser->b.top, struct disasm_line, al.node);
- bl = browser_line(&dl->al);
+ al = list_entry(browser->b.top, struct annotation_line, node);
+ bl = browser_line(al);
if (annotate_browser__opts.hide_src_code) {
if (bl->idx_asm < offset)
return true;
}
- annotate_browser__set_top(browser, dl, idx);
+ annotate_browser__set_top(browser, &dl->al, idx);
return true;
}
return false;
}
- annotate_browser__set_top(browser, disasm_line(al), idx);
+ annotate_browser__set_top(browser, al, idx);
browser->searching_backwards = false;
return true;
}
return false;
}
- annotate_browser__set_top(browser, disasm_line(al), idx);
+ annotate_browser__set_top(browser, al, idx);
browser->searching_backwards = true;
return true;
}