Enum gimli::read::Error

source ·
pub enum Error {
Show 75 variants Io, PcRelativePointerButSectionBaseIsUndefined, TextRelativePointerButTextBaseIsUndefined, DataRelativePointerButDataBaseIsUndefined, FuncRelativePointerInBadContext, CannotParseOmitPointerEncoding, BadUnsignedLeb128, BadSignedLeb128, AbbreviationTagZero, AttributeFormZero, BadHasChildren, BadLength, UnknownForm, ExpectedZero, DuplicateAbbreviationCode, DuplicateArange, UnknownReservedLength, UnknownVersion(u64), UnknownAbbreviation, UnexpectedEof(ReaderOffsetId), UnexpectedNull, UnknownStandardOpcode(DwLns), UnknownExtendedOpcode(DwLne), UnsupportedAddressSize(u8), UnsupportedOffsetSize(u8), UnsupportedFieldSize(u8), MinimumInstructionLengthZero, MaximumOperationsPerInstructionZero, LineRangeZero, OpcodeBaseZero, BadUtf8, NotCieId, NotCiePointer, NotFdePointer, BadBranchTarget(u64), InvalidPushObjectAddress, NotEnoughStackItems, TooManyIterations, InvalidExpression(DwOp), UnsupportedEvaluation, InvalidPiece, InvalidExpressionTerminator(u64), DivisionByZero, TypeMismatch, IntegralTypeRequired, UnsupportedTypeOperation, InvalidShiftExpression, UnknownCallFrameInstruction(DwCfa), InvalidAddressRange, InvalidLocationAddressRange, CfiInstructionInInvalidContext, PopWithEmptyStack, NoUnwindInfoForAddress, UnsupportedOffset, UnknownPointerEncoding, NoEntryAtGivenOffset, OffsetOutOfBounds, UnknownAugmentation, UnsupportedPointerEncoding, UnsupportedRegister(u64), TooManyRegisterRules, StackFull, VariableLengthSearchTable, UnsupportedUnitType, UnsupportedAddressIndex, UnsupportedSegmentSize, MissingUnitDie, UnsupportedAttributeForm, MissingFileEntryFormatPath, ExpectedStringAttributeValue, InvalidImplicitConst, InvalidIndexSectionCount, InvalidIndexSlotCount, InvalidIndexRow, UnknownIndexSection,
}
Expand description

An error that occurred when parsing.

Variants§

§

Io

An I/O error occurred while reading.

§

PcRelativePointerButSectionBaseIsUndefined

Found a PC relative pointer, but the section base is undefined.

§

TextRelativePointerButTextBaseIsUndefined

Found a .text relative pointer, but the .text base is undefined.

§

DataRelativePointerButDataBaseIsUndefined

Found a data relative pointer, but the data base is undefined.

§

FuncRelativePointerInBadContext

Found a function relative pointer in a context that does not have a function base.

§

CannotParseOmitPointerEncoding

Cannot parse a pointer with a DW_EH_PE_omit encoding.

§

BadUnsignedLeb128

An error parsing an unsigned LEB128 value.

§

BadSignedLeb128

An error parsing a signed LEB128 value.

§

AbbreviationTagZero

An abbreviation declared that its tag is zero, but zero is reserved for null records.

§

AttributeFormZero

An attribute specification declared that its form is zero, but zero is reserved for null records.

§

BadHasChildren

The abbreviation’s has-children byte was not one of DW_CHILDREN_{yes,no}.

§

BadLength

The specified length is impossible.

§

UnknownForm

Found an unknown DW_FORM_* type.

§

ExpectedZero

Expected a zero, found something else.

§

DuplicateAbbreviationCode

Found an abbreviation code that has already been used.

§

DuplicateArange

Found a duplicate arange.

§

UnknownReservedLength

Found an unknown reserved length value.

§

UnknownVersion(u64)

Found an unknown DWARF version.

§

UnknownAbbreviation

Found a record with an unknown abbreviation code.

§

UnexpectedEof(ReaderOffsetId)

Hit the end of input before it was expected.

§

UnexpectedNull

Read a null entry before it was expected.

§

UnknownStandardOpcode(DwLns)

Found an unknown standard opcode.

§

UnknownExtendedOpcode(DwLne)

Found an unknown extended opcode.

§

UnsupportedAddressSize(u8)

The specified address size is not supported.

§

UnsupportedOffsetSize(u8)

The specified offset size is not supported.

§

UnsupportedFieldSize(u8)

The specified field size is not supported.

§

MinimumInstructionLengthZero

The minimum instruction length must not be zero.

§

MaximumOperationsPerInstructionZero

The maximum operations per instruction must not be zero.

§

LineRangeZero

The line range must not be zero.

§

OpcodeBaseZero

The opcode base must not be zero.

§

BadUtf8

Found an invalid UTF-8 string.

§

NotCieId

Expected to find the CIE ID, but found something else.

§

NotCiePointer

Expected to find a pointer to a CIE, but found the CIE ID instead.

§

NotFdePointer

Expected to find a pointer to an FDE, but found a CIE instead.

§

BadBranchTarget(u64)

Invalid branch target for a DW_OP_bra or DW_OP_skip.

§

InvalidPushObjectAddress

DW_OP_push_object_address used but no address passed in.

§

NotEnoughStackItems

Not enough items on the stack when evaluating an expression.

§

TooManyIterations

Too many iterations to compute the expression.

§

InvalidExpression(DwOp)

An unrecognized operation was found while parsing a DWARF expression.

§

UnsupportedEvaluation

An unsupported operation was found while evaluating a DWARF expression.

§

InvalidPiece

The expression had a piece followed by an expression terminator without a piece.

§

InvalidExpressionTerminator(u64)

An expression-terminating operation was followed by something other than the end of the expression or a piece operation.

§

DivisionByZero

Division or modulus by zero when evaluating an expression.

§

TypeMismatch

An expression operation used mismatching types.

§

IntegralTypeRequired

An expression operation required an integral type but saw a floating point type.

§

UnsupportedTypeOperation

An expression operation used types that are not supported.

§

InvalidShiftExpression

The shift value in an expression must be a non-negative integer.

§

UnknownCallFrameInstruction(DwCfa)

An unknown DW_CFA_* instruction.

§

InvalidAddressRange

The end of an address range was before the beginning.

§

InvalidLocationAddressRange

The end offset of a loc list entry was before the beginning.

§

CfiInstructionInInvalidContext

Encountered a call frame instruction in a context in which it is not valid.

§

PopWithEmptyStack

When evaluating call frame instructions, found a DW_CFA_restore_state stack pop instruction, but the stack was empty, and had nothing to pop.

§

NoUnwindInfoForAddress

Do not have unwind info for the given address.

§

UnsupportedOffset

An offset value was larger than the maximum supported value.

§

UnknownPointerEncoding

The given pointer encoding is either unknown or invalid.

§

NoEntryAtGivenOffset

Did not find an entry at the given offset.

§

OffsetOutOfBounds

The given offset is out of bounds.

§

UnknownAugmentation

Found an unknown CFI augmentation.

§

UnsupportedPointerEncoding

We do not support the given pointer encoding yet.

§

UnsupportedRegister(u64)

Registers larger than u16 are not supported.

§

TooManyRegisterRules

The CFI program defined more register rules than we have storage for.

§

StackFull

Attempted to push onto the CFI or evaluation stack, but it was already at full capacity.

§

VariableLengthSearchTable

The .eh_frame_hdr binary search table claims to be variable-length encoded, which makes binary search impossible.

§

UnsupportedUnitType

The DW_UT_* value for this unit is not supported yet.

§

UnsupportedAddressIndex

Ranges using AddressIndex are not supported yet.

§

UnsupportedSegmentSize

Nonzero segment selector sizes aren’t supported yet.

§

MissingUnitDie

A compilation unit or type unit is missing its top level DIE.

§

UnsupportedAttributeForm

A DIE attribute used an unsupported form.

§

MissingFileEntryFormatPath

Missing DW_LNCT_path in file entry format.

§

ExpectedStringAttributeValue

Expected an attribute value to be a string form.

§

InvalidImplicitConst

DW_FORM_implicit_const used in an invalid context.

§

InvalidIndexSectionCount

Invalid section count in .dwp index.

§

InvalidIndexSlotCount

Invalid slot count in .dwp index.

§

InvalidIndexRow

Invalid hash row in .dwp index.

§

UnknownIndexSection

Unknown section type in .dwp index.

Implementations§

source§

impl Error

source

pub fn description(&self) -> &str

A short description of the error.

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq<Error> for Error

source§

fn eq(&self, other: &Error) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Error

source§

impl Eq for Error

source§

impl StructuralEq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.