File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -45,31 +45,7 @@ impl Mapping {
4545
4646 /// Load debuginfo from an external debug file.
4747 fn new_debug ( original_path : & Path , path : PathBuf , crc : Option < u32 > ) -> Option < Mapping > {
48- let map = super :: mmap ( & path) ?;
49- Mapping :: mk ( map, |map, stash| {
50- let object = Object :: parse ( & map) ?;
51-
52- if let Some ( _crc) = crc {
53- // TODO: check crc
54- }
55-
56- // Try to locate a supplementary object file.
57- let mut sup = None ;
58- if let Some ( ( path_sup, build_id_sup) ) = object. gnu_debugaltlink_path ( & path) {
59- if let Some ( map_sup) = super :: mmap ( & path_sup) {
60- let map_sup = stash. cache_mmap ( map_sup) ;
61- if let Some ( sup_) = Object :: parse ( map_sup) {
62- if sup_. build_id ( ) == Some ( build_id_sup) {
63- sup = Some ( sup_) ;
64- }
65- }
66- }
67- }
68-
69- let dwp = Mapping :: load_dwarf_package ( original_path, stash) ;
70-
71- Context :: new ( stash, object, sup, dwp)
72- } )
48+ None
7349 }
7450
7551 /// Try to locate a DWARF package file.
You can’t perform that action at this time.
0 commit comments