Class: ElfUtils::Section::DebugAbbrev

Inherits:
Base
  • Object
show all
Defined in:
lib/elf_utils/section/debug_abbrev.rb,
lib/elf_utils/section/debug_abbrev/abbreviation_table.rb

Defined Under Namespace

Classes: Abbreviation, AbbreviationTable

Instance Attribute Summary

Attributes inherited from Base

#header

Instance Method Summary collapse

Methods inherited from Base

#addr, #alloc?, #bytes, #flags, #inspect, #load_segment, #name, #offset, #relocate, #relocation_offset, #size, #symbol, #symbols, #to_range

Constructor Details

#initialize(*args) ⇒ DebugAbbrev



3
4
5
6
# File 'lib/elf_utils/section/debug_abbrev.rb', line 3

def initialize(*args)
  super
  @abbreviation_tables = {}
end

Instance Method Details

#abbreviation_table(offset) ⇒ Object



8
9
10
# File 'lib/elf_utils/section/debug_abbrev.rb', line 8

def abbreviation_table(offset)
  @abbreviation_tables[offset] ||= AbbreviationTable.new(bytes[offset..])
end