fromReader static method
Attempts to load the DWARF debugging information from the reader.
Returns a Dwarf object if the load succeeds, otherwise returns null.
Implementation
static Dwarf? fromReader(Reader reader) {
final elf = Elf.fromReader(reader);
if (elf != null) {
return DwarfSnapshot.fromDwarfContainer(reader, elf);
}
final macho = MachO.fromReader(reader);
if (macho != null) {
return DwarfSnapshot.fromDwarfContainer(reader, macho);
}
final universalBinary = UniversalBinary.fromReader(reader);
if (universalBinary != null) {
return DwarfUniversalBinary.fromUniversalBinary(reader, universalBinary);
}
return null;
}