Class: ElfUtils::Section::DebugLine::LineNumberProgram::Header

Inherits:
CTypes::Union
  • Object
show all
Extended by:
Forwardable
Includes:
CTypes::Helpers
Defined in:
lib/elf_utils/section/debug_line/line_number_program/header.rb

Constant Summary collapse

EntryFormat =

struct used for ‘directory_entry_format` and `file_name_entry_format` in DWARF v5.

CTypes::Helpers.struct(
  type: Types::Dwarf::EntryFormatType,
  form: Types::Dwarf::Form
)
INCLUDE_DIRECTORIES_FORMAT =

entry format for ‘include_directories` prior to DWARF v5

[EntryFormat.new(type: :path, form: :string)]
FILE_NAMES_FORMAT =

entry format for ‘file_names` prior for DWARF v5

[
  EntryFormat.new(type: :path, form: :string),
  EntryFormat.new(type: :directory_index, form: :udata),
  EntryFormat.new(type: :timestamp, form: :udata),
  EntryFormat.new(type: :size, form: :udata)
]

Instance Method Summary collapse

Instance Method Details

#innerObject



44
45
46
# File 'lib/elf_utils/section/debug_line/line_number_program/header.rb', line 44

def inner
  @inner = send(unit.type)
end