Enum samply_symbols::CodeId
source · pub enum CodeId {
PeCodeId(PeCodeId),
MachoUuid(Uuid),
ElfBuildId(ElfBuildId),
}Expand description
An enum carrying an identifier for a binary. This is stores the same information
as a debugid::CodeId, but without projecting it down to a string.
All types need to be treated rather differently, see their respective documentation.
Variants§
PeCodeId(PeCodeId)
The code ID for a Windows PE file. When combined with the binary name, the code ID lets you obtain binaries from symbol servers. It is not useful on its own, it has to be paired with the binary name.
On Windows, a binary’s code ID is distinct from its debug ID (= pdb GUID + age). If you have a binary file, you can get both the code ID and the debug ID from it. If you only have a PDB file, you usually cannot get the code ID of the corresponding binary from it.
MachoUuid(Uuid)
The code ID for a macOS / iOS binary (mach-O). This is just the mach-O UUID. The mach-O UUID is shared between both the binary file and the debug file (dSYM), and it can be used on its own to find dSYMs using Spotlight.
The debug ID and the code ID contain the same information; the debug ID is literally just the UUID plus a zero at the end.
ElfBuildId(ElfBuildId)
The code ID for a Linux ELF file. This is the “ELF build ID” (also called “GNU build ID”). The build ID is usually 20 bytes, commonly written out as 40 hex chars.
It can be used to find debug files on the local file system or to download
binaries or debug files from a debuginfod symbol server. it does not have to be
paired with the binary name.
An ELF binary’s code ID is more useful than its debug ID: The debug ID is truncated to 16 bytes (32 hex characters), whereas the code ID is the full ELF build ID.
Trait Implementations§
source§impl Ord for CodeId
impl Ord for CodeId
source§impl PartialEq<CodeId> for CodeId
impl PartialEq<CodeId> for CodeId
source§impl PartialOrd<CodeId> for CodeId
impl PartialOrd<CodeId> for CodeId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more