Class: ElfUtils::Section::DebugLine
- Defined in:
- lib/elf_utils/section/debug_line.rb,
lib/elf_utils/section/debug_line/line_number_program.rb,
lib/elf_utils/section/debug_line/line_number_program/state_machine.rb
Defined Under Namespace
Classes: LineNumberProgram
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#addr, #alloc?, #bytes, #flags, #initialize, #inspect, #load_segment, #name, #offset, #relocate, #relocation_offset, #size, #symbol, #symbols, #to_range
Constructor Details
This class inherits a constructor from ElfUtils::Section::Base
Instance Method Details
#line_number_program(offset) ⇒ Object
13 14 15 16 |
# File 'lib/elf_utils/section/debug_line.rb', line 13 def line_number_program(offset) program, = unpack_line_number_program(bytes[offset..]) program end |
#line_number_programs ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/elf_utils/section/debug_line.rb', line 3 def line_number_programs out = [] buf = bytes until buf.empty? program, buf = unpack_line_number_program(buf) out << program end out end |