Enum gimli::Error
[−]
[src]
pub enum Error { CfiRelativePointerButCfiBaseIsUndefined, TextRelativePointerButTextBaseIsUndefined, DataRelativePointerButDataBaseIsUndefined, FuncRelativePointerInBadContext, BadUnsignedLeb128, BadSignedLeb128, AbbreviationTagZero, AttributeFormZero, BadHasChildren, BadLength, UnknownForm, ExpectedZero, DuplicateAbbreviationCode, DuplicateArange, UnknownReservedLength, UnknownVersion, UnitHeaderLengthTooShort, UnknownAbbreviation, UnexpectedEof, UnexpectedNull, UnknownStandardOpcode(DwLns), UnknownExtendedOpcode(DwLne), UnsupportedAddressSize(u8), UnsupportedFieldSize(u8), MinimumInstructionLengthZero, MaximumOperationsPerInstructionZero, LineRangeZero, OpcodeBaseZero, BadUtf8, NotCieId, NotCiePointer, BadBranchTarget(usize), InvalidPushObjectAddress, NotEnoughStackItems, TooManyIterations, InvalidExpression(DwOp), InvalidPiece, InvalidExpressionTerminator(usize), DivisionByZero, UnknownCallFrameInstruction(DwCfa), InvalidAddressRange, InvalidLocationAddressRange, CfiInstructionInInvalidContext, PopWithEmptyStack, NoUnwindInfoForAddress, UnsupportedOffset, UnknownPointerEncoding, NoEntryAtGivenOffset, OffsetOutOfBounds, UnknownAugmentation, UnsupportedPointerEncoding, CannotFitInU8, TooManyRegisterRules, CfiStackFull, }
An error that occurred when parsing.
Variants
CfiRelativePointerButCfiBaseIsUndefined
Found a CFI relative pointer, but the CFI 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.
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
Found an unknown DWARF version.
UnitHeaderLengthTooShort
The unit header's claimed length is too short to even hold the header itself.
UnknownAbbreviation
Found a record with an unknown abbreviation code.
UnexpectedEof
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.
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.
BadBranchTarget(usize)
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.
InvalidPiece
The expression had a piece followed by an expression terminator without a piece.
InvalidExpressionTerminator(usize)
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.
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.
CannotFitInU8
We tried to convert some number into a u8
, but it was too large.
TooManyRegisterRules
The CFI program defined more register rules than we have storage for.
CfiStackFull
Attempted to push onto the CFI stack, but it was already at full capacity.
Trait Implementations
impl Debug for Error
[src]
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.