[−][src]Enum gimli::read::AttributeValue
The value of an attribute in a DebuggingInformationEntry
.
Variants
"Refers to some location in the address space of the described program."
A slice of an arbitrary number of bytes.
A one byte constant data value. How to interpret the byte depends on context.
From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."
A two byte constant data value. How to interpret the bytes depends on context.
These bytes have been converted from R::Endian
. This may need to be reversed
if this was not required.
From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."
A four byte constant data value. How to interpret the bytes depends on context.
These bytes have been converted from R::Endian
. This may need to be reversed
if this was not required.
From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."
An eight byte constant data value. How to interpret the bytes depends on context.
These bytes have been converted from R::Endian
. This may need to be reversed
if this was not required.
From section 7 of the standard: "Depending on context, it may be a signed integer, an unsigned integer, a floating-point constant, or anything else."
A signed integer constant.
An unsigned integer constant.
Exprloc(Expression<R>)
"The information bytes contain a DWARF expression (see Section 2.5) or location description (see Section 2.6)."
A boolean that indicates presence or absence of the attribute.
An offset into another section. Which section this is an offset into depends on context.
DebugAddrBase(DebugAddrBase<Offset>)
An offset to a set of addresses in the .debug_addr
section.
DebugAddrIndex(DebugAddrIndex<Offset>)
An index into a set of addresses in the .debug_addr
section.
UnitRef(UnitOffset<Offset>)
An offset into the current compilation unit.
DebugInfoRef(DebugInfoOffset<Offset>)
An offset into the current .debug_info
section, but possibly a
different compilation unit from the current one.
DebugInfoRefSup(DebugInfoOffset<Offset>)
An offset into the .debug_info
section of the supplementary object file.
DebugLineRef(DebugLineOffset<Offset>)
An offset into the .debug_line
section.
LocationListsRef(LocationListsOffset<Offset>)
An offset into either the .debug_loc
section or the .debug_loclists
section.
DebugLocListsBase(DebugLocListsBase<Offset>)
An offset to a set of offsets in the .debug_loclists
section.
DebugLocListsIndex(DebugLocListsIndex<Offset>)
An index into a set of offsets in the .debug_loclists
section.
DebugMacinfoRef(DebugMacinfoOffset<Offset>)
An offset into the .debug_macinfo
section.
DebugMacroRef(DebugMacroOffset<Offset>)
An offset into the .debug_macro
section.
RangeListsRef(RangeListsOffset<Offset>)
An offset into the .debug_ranges
section.
DebugRngListsBase(DebugRngListsBase<Offset>)
An offset to a set of offsets in the .debug_rnglists
section.
DebugRngListsIndex(DebugRngListsIndex<Offset>)
An index into a set of offsets in the .debug_rnglists
section.
DebugTypesRef(DebugTypeSignature)
A type signature.
DebugStrRef(DebugStrOffset<Offset>)
An offset into the .debug_str
section.
DebugStrRefSup(DebugStrOffset<Offset>)
An offset into the .debug_str
section of the supplementary object file.
DebugStrOffsetsBase(DebugStrOffsetsBase<Offset>)
An offset to a set of entries in the .debug_str_offsets
section.
DebugStrOffsetsIndex(DebugStrOffsetsIndex<Offset>)
An index into a set of entries in the .debug_str_offsets
section.
DebugLineStrRef(DebugLineStrOffset<Offset>)
An offset into the .debug_line_str
section.
A slice of bytes representing a string. Does not include a final null byte. Not guaranteed to be UTF-8 or anything like that.
Encoding(DwAte)
The value of a DW_AT_encoding
attribute.
DecimalSign(DwDs)
The value of a DW_AT_decimal_sign
attribute.
Endianity(DwEnd)
The value of a DW_AT_endianity
attribute.
Accessibility(DwAccess)
The value of a DW_AT_accessibility
attribute.
Visibility(DwVis)
The value of a DW_AT_visibility
attribute.
Virtuality(DwVirtuality)
The value of a DW_AT_virtuality
attribute.
Language(DwLang)
The value of a DW_AT_language
attribute.
AddressClass(DwAddr)
The value of a DW_AT_address_class
attribute.
IdentifierCase(DwId)
The value of a DW_AT_identifier_case
attribute.
CallingConvention(DwCc)
The value of a DW_AT_calling_convention
attribute.
Inline(DwInl)
The value of a DW_AT_inline
attribute.
Ordering(DwOrd)
The value of a DW_AT_ordering
attribute.
An index into the filename entries from the line number information table for the compilation unit containing this value.
Implementations
impl<R, Offset> AttributeValue<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
pub fn u8_value(&self) -> Option<u8>
[src]
Try to convert this attribute's value to a u8.
pub fn u16_value(&self) -> Option<u16>
[src]
Try to convert this attribute's value to a u16.
pub fn udata_value(&self) -> Option<u64>
[src]
Try to convert this attribute's value to an unsigned integer.
pub fn sdata_value(&self) -> Option<i64>
[src]
Try to convert this attribute's value to a signed integer.
pub fn offset_value(&self) -> Option<R::Offset>
[src]
Try to convert this attribute's value to an offset.
pub fn exprloc_value(&self) -> Option<Expression<R>>
[src]
Try to convert this attribute's value to an expression or location buffer.
Expressions and locations may be DW_FORM_block*
or DW_FORM_exprloc
.
The standard doesn't mention DW_FORM_block*
as a possible form, but
it is encountered in practice.
pub fn string_value(&self, debug_str: &DebugStr<R>) -> Option<R>
[src]
Try to return this attribute's value as a string slice.
If this attribute's value is either an inline DW_FORM_string
string,
or a DW_FORM_strp
reference to an offset into the .debug_str
section, return the attribute's string value as Some
. Other attribute
value forms are returned as None
.
Warning: this function does not handle all possible string forms.
Use Dwarf::attr_string
instead.
pub fn string_value_sup(
&self,
debug_str: &DebugStr<R>,
debug_str_sup: Option<&DebugStr<R>>
) -> Option<R>
[src]
&self,
debug_str: &DebugStr<R>,
debug_str_sup: Option<&DebugStr<R>>
) -> Option<R>
Try to return this attribute's value as a string slice.
If this attribute's value is either an inline DW_FORM_string
string,
or a DW_FORM_strp
reference to an offset into the .debug_str
section, or a DW_FORM_strp_sup
reference to an offset into a supplementary
object file, return the attribute's string value as Some
. Other attribute
value forms are returned as None
.
Warning: this function does not handle all possible string forms.
Use Dwarf::attr_string
instead.
Trait Implementations
impl<R: Clone, Offset: Clone> Clone for AttributeValue<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn clone(&self) -> AttributeValue<R, Offset>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Copy, Offset: Copy> Copy for AttributeValue<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Debug, Offset: Debug> Debug for AttributeValue<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Eq, Offset: Eq> Eq for AttributeValue<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: PartialEq, Offset: PartialEq> PartialEq<AttributeValue<R, Offset>> for AttributeValue<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn eq(&self, other: &AttributeValue<R, Offset>) -> bool
[src]
fn ne(&self, other: &AttributeValue<R, Offset>) -> bool
[src]
impl<R, Offset> StructuralEq for AttributeValue<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> StructuralPartialEq for AttributeValue<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations
impl<R, Offset> Send for AttributeValue<R, Offset> where
Offset: Send,
R: Send,
Offset: Send,
R: Send,
impl<R, Offset> Sync for AttributeValue<R, Offset> where
Offset: Sync,
R: Sync,
Offset: Sync,
R: Sync,
impl<R, Offset> Unpin for AttributeValue<R, Offset> where
Offset: Unpin,
R: Unpin,
Offset: Unpin,
R: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,