Class: ElfUtils::Section::DebugAbbrev
- 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
Instance Method Summary collapse
- #abbreviation_table(offset) ⇒ Object
-
#initialize(*args) ⇒ DebugAbbrev
constructor
A new instance of DebugAbbrev.
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 |