[go: up one dir, main page]

Enum gimli::Error [] [src]

pub enum Error {
    BadUnsignedLeb128,
    BadSignedLeb128,
    AbbreviationTagZero,
    AttributeFormZero,
    BadHasChildren,
    BadLength,
    UnknownForm,
    ExpectedZero,
    DuplicateAbbreviationCode,
    DuplicateArange,
    UnknownReservedLength,
    UnknownVersion,
    UnitHeaderLengthTooShort,
    UnknownAbbreviation,
    UnexpectedEof,
    UnknownStandardOpcode(DwLns),
    UnknownExtendedOpcode(DwLne),
    UnsupportedAddressSize(u8),
    UnsupportedFieldSize(u8),
    MinimumInstructionLengthZero,
    MaximumOperationsPerInstructionZero,
    LineRangeZero,
    OpcodeBaseZero,
    BadFileIndex,
    BadUtf8,
    NotCieId,
    NotCiePointer,
    BadBranchTarget(usize),
    InvalidPushObjectAddress,
    NotEnoughStackItems,
    TooManyIterations,
    InvalidExpression(DwOp),
    InvalidPiece,
    InvalidExpressionTerminator(usize),
    DivisionByZero,
    UnknownCallFrameInstruction(DwCfa),
    InvalidAddressRange,
    InvalidLocationAddressRange,
    CfiInstructionInInvalidContext,
    PopWithEmptyStack,
}

An error that occurred when parsing.

Variants

An error parsing an unsigned LEB128 value.

An error parsing a signed LEB128 value.

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

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

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

The specified length is impossible.

Found an unknown DW_FORM_* type.

Expected a zero, found something else.

Found an abbreviation code that has already been used.

Found a duplicate arange.

Found an unknown reserved length value.

Found an unknown DWARF version.

The unit header's claimed length is too short to even hold the header itself.

Found a record with an unknown abbreviation code.

Hit the end of input before it was expected.

Found an unknown standard opcode.

Found an unknown extended opcode.

The specified address size is not supported.

The specified field size is not supported.

The minimum instruction length must not be zero.

The maximum operations per instruction must not be zero.

The line range must not be zero.

The opcode base must not be zero.

The specified file index was out of bounds.

Found an invalid UTF-8 string.

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

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

Invalid branch target for a DW_OP_bra or DW_OP_skip.

DW_OP_push_object_address used but no address passed in.

Not enough items on the stack when evaluating an expression.

Too many iterations to compute the expression.

An unrecognized operation was found while parsing a DWARF expression.

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

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

Division or modulus by zero when evaluating an expression.

An unknown DW_CFA_* instruction.

The end of an address range was before the beginning.

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

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

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

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Error
[src]

impl Display for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more