Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Mar 28, 2024
1 parent b76177c commit 8ff9b68
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/symbolize/gimli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,7 @@ pub unsafe fn resolve(what: ResolveWhat<'_>, cb: &mut dyn FnMut(&super::Symbol))
}
if !any_frames {
if let Some(name) = cx.object.search_symtab(addr as u64) {
call(Symbol::Symtab {
addr: addr as *mut c_void,
name,
});
call(Symbol::Symtab { name });
}
}
});
Expand All @@ -491,7 +488,7 @@ pub enum Symbol<'a> {
},
/// Couldn't find debug information, but we found it in the symbol table of
/// the elf executable.
Symtab { addr: *mut c_void, name: &'a [u8] },
Symtab { name: &'a [u8] },
}

impl Symbol<'_> {
Expand Down

0 comments on commit 8ff9b68

Please sign in to comment.