Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304857
b: refs/heads/master
c: 38b31bd
h: refs/heads/master
i:
  304855: 16d9a4f
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Apr 25, 2012
1 parent 4aca0a2 commit 89f4704
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb29fa58e36df09c807d252247d64a221fcd5bbb
refs/heads/master: 38b31bd0cefbb0e69a182d9a94b09a7e648549dc
6 changes: 4 additions & 2 deletions trunk/tools/perf/ui/browsers/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ static void annotate_browser__draw_current_loop(struct ui_browser *browser)
unsigned int from, to, start_width = 2;

list_for_each_entry_from(pos, &notes->src->source, node) {
if (!pos->ins || !ins__is_jump(pos->ins))
if (!pos->ins || !ins__is_jump(pos->ins) ||
!disasm_line__has_offset(pos))
continue;

target = ab->offsets[pos->ops.target.offset];
Expand Down Expand Up @@ -689,7 +690,8 @@ static void annotate_browser__mark_jump_targets(struct annotate_browser *browser
struct disasm_line *dl = browser->offsets[offset], *dlt;
struct browser_disasm_line *bdlt;

if (!dl || !dl->ins || !ins__is_jump(dl->ins))
if (!dl || !dl->ins || !ins__is_jump(dl->ins) ||
!disasm_line__has_offset(dl))
continue;

if (dl->ops.target.offset >= size) {
Expand Down

0 comments on commit 89f4704

Please sign in to comment.