Skip to content

Commit 6c0275c

Browse files
committed
Simplify ExternalFileSymbolMap and friends.
1 parent c8ab8c3 commit 6c0275c

File tree

9 files changed

+260
-285
lines changed

9 files changed

+260
-285
lines changed

samply-symbols/src/elf.rs

-2
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ impl<'data, T: FileContents + 'static> ElfObjectsTrait<T> for ElfObjects<'data,
378378
debug_id,
379379
function_starts.as_deref(),
380380
function_ends.as_deref(),
381-
None,
382381
);
383382

384383
Ok(symbol_map)
@@ -401,7 +400,6 @@ impl<'data, T: FileContents + 'static> ElfObjectsTrait<T> for ElfObjects<'data,
401400
debug_id,
402401
function_starts.as_deref(),
403402
function_ends.as_deref(),
404-
None,
405403
self,
406404
);
407405

samply-symbols/src/error.rs

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ pub enum Error {
4141
#[error("External file has an unexpected FileKind: {0:?}")]
4242
UnexpectedExternalFileFileKind(FileKind),
4343

44+
#[error("Error parsing external archive file: {0}")]
45+
ParseErrorInExternalArchive(#[source] object::read::Error),
46+
4447
#[error("Not enough information was supplied to identify the requested symbol map. The debug ID is required.")]
4548
NotEnoughInformationToIdentifySymbolMap,
4649

@@ -241,6 +244,7 @@ impl Error {
241244
Error::InvalidBreakpadId(_) => "InvalidBreakpadId",
242245
Error::EmptyFatArchive => "EmptyFatArchive",
243246
Error::CouldNotDetermineExternalFileFileKind => "CouldNotDetermineExternalFileFileKind",
247+
Error::ParseErrorInExternalArchive(_) => "ParseErrorInExternalArchive",
244248
Error::FileLocationRefusedSubcacheLocation => "FileLocationRefusedSubcacheLocation",
245249
Error::FileLocationRefusedExternalObjectLocation => {
246250
"FileLocationRefusedExternalObjectLocation"

0 commit comments

Comments
 (0)