Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338981
b: refs/heads/master
c: 32ae1ef
h: refs/heads/master
i:
  338979: 08b6293
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Nov 9, 2012
1 parent 0bc6cd6 commit 5113983
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ba34aaa6db8b61cf1fa14132f885ba6bc7c9ae0
refs/heads/master: 32ae1efd9d40645601cd4e09fa83a2711dd1ad6d
12 changes: 12 additions & 0 deletions trunk/tools/perf/ui/browsers/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ static void annotate_browser__draw_current_jump(struct ui_browser *browser)
struct disasm_line *cursor = ab->selection, *target;
struct browser_disasm_line *btarget, *bcursor;
unsigned int from, to;
struct map_symbol *ms = ab->b.priv;
struct symbol *sym = ms->sym;

/* PLT symbols contain external offsets */
if (strstr(sym->name, "@plt"))
return;

if (!cursor || !cursor->ins || !ins__is_jump(cursor->ins) ||
!disasm_line__has_offset(cursor))
Expand Down Expand Up @@ -771,6 +777,12 @@ static void annotate_browser__mark_jump_targets(struct annotate_browser *browser
size_t size)
{
u64 offset;
struct map_symbol *ms = browser->b.priv;
struct symbol *sym = ms->sym;

/* PLT symbols contain external offsets */
if (strstr(sym->name, "@plt"))
return;

for (offset = 0; offset < size; ++offset) {
struct disasm_line *dl = browser->offsets[offset], *dlt;
Expand Down

0 comments on commit 5113983

Please sign in to comment.