Some PDBs seem to have no section headers, like for instance .NET Portable PDBs. In this case, pdb.address_map() used to return Error::AddressMapNotFound. It's slightly more ergonomic to return an empty address map for such a case, so that it can be used in offset.to_rva(&address_map) and the likes.
The case where omap_from_src and omap_to_src are missing is still returned as error, though.
Some PDBs seem to have no section headers, like for instance .NET Portable PDBs. In this case,
pdb.address_map()
used to returnError::AddressMapNotFound
. It's slightly more ergonomic to return an empty address map for such a case, so that it can be used inoffset.to_rva(&address_map)
and the likes.The case where
omap_from_src
andomap_to_src
are missing is still returned as error, though.