Parses DWARF 4 data into a Debug_Info. Pass the contents of the .debug_info, .debug_abbrev, .debug_line and .debug_str sections. Returns false, and logs why, for data that is malformed or not DWARF 4. Set verbose to log what it reads.
info, ok := parse_dwarf_debug_info(.[], .[], .[], .[]);
assert(ok && info.compilation_units.count == 0);parse_dwarf_debug_info :: (
debug_info_data: [] u8,
abbrev: [] u8,
line_programs: [] u8,
debug_string_data: [] u8,
verbose := false
) -> (Debug_Info, success: bool)
Parameters
- debug_info_data: [] u8
- abbrev: [] u8
- line_programs: [] u8
- debug_string_data: [] u8
- verbose := false
Returns
- success: bool