Function
find_debug_file_in
(
object: &object::File,
binary_path: &Path,
debug_dir: &Path,
)
Source from the content-addressed store, hash-verified
| 26 | } |
| 27 | |
| 28 | fn find_debug_file_in( |
| 29 | object: &object::File, |
| 30 | binary_path: &Path, |
| 31 | debug_dir: &Path, |
| 32 | ) -> Option<PathBuf> { |
| 33 | if let Some(path) = find_debug_file_by_build_id(object, debug_dir) { |
| 34 | return Some(path); |
| 35 | } |
| 36 | find_debug_file_by_debuglink(object, binary_path, Some(debug_dir)) |
| 37 | } |
| 38 | |
| 39 | /// Build-id `a05cfb6313fe06a13c9b4b5cb86c2069faa3951f` resolves to |
| 40 | /// `<debug_dir>/.build-id/a0/5cfb6313fe06a13c9b4b5cb86c2069faa3951f.debug`: |