Skip to content

Commit

Permalink
dasm/gui: list fileoff in section list
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyg committed Nov 5, 2020
1 parent d49c86b commit 1870cc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions metasm/gui/dasm_main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,11 @@ def list_labels
end

def list_sections
list = [['addr', 'length', 'name', 'info']]
list = [['addr', 'length', 'name', 'fileoff', 'info']]
@dasm.section_info.each { |n,a,l,i|
list << [Expression[a], Expression[l], n, i]
ra = @dasm.addr_to_fileoff(a)
ra = Expression[ra] if ra
list << [Expression[a], Expression[l], n, ra, i]
}
listwindow("list of sections", list) { |i| focus_addr_autocomplete i[0] if i[0] != '0' or @dasm.get_section_at(0) }
end
Expand Down

0 comments on commit 1870cc3

Please sign in to comment.