Expand description
A library for parsing debuginfo.
§Example usage
let ctx = ddbug_parser::File::parse(a_file_path)?;
let file = ctx.file();
for unit in file.units() {
for function in unit.functions() {
if let Some(name) = function.name() {
println!("{}", name);
}
}
}
Ok(())
}
Structs§
- Address
- An optional address.
- Array
Type - A type for an array of elements.
- Base
Type - A base type.
- Enumeration
Type - An enumeration type.
- Enumerator
- A member of an enumeration.
- Error
- A parsing error.
- File
- The parsed debuginfo for a single file.
- File
Context - The context needed for a parsed file.
- File
Hash - An index of functions and types within a file.
- Frame
Location - A location within the stack frame.
- Function
- A function.
- Function
Details - Extra function details.
- Function
Offset - The debuginfo offset of a function.
- Function
Type - A function type.
- Inherit
- An inherited type of a struct or union.
- Inlined
Function - An inlined instance of a function.
- Layout
- The layout of an item (member or padding) within a struct.
- Local
Variable - A local variable.
- Member
- A member of a struct or union.
- Namespace
- A nestable namspace.
- Parameter
- A function parameter.
- Parameter
Type - The type of a function parameter.
- Pointer
ToMember Type - A type for a pointer to a member of a containing type.
- Range
- An address range.
- Range
List - A list of address ranges.
- Register
- A register number.
- Relocation
- A relocation.
- Section
- A named section.
- Segment
- A loadable range of bytes.
- Size
- An optional size.
- Source
- A source location.
- Struct
Type - A struct type.
- Subrange
Type - A subrange of another type.
- Symbol
- A symbol.
- Type
- A type.
- TypeDef
- A type alias definition.
- Type
Modifier - A type that is obtained by adding a modifier to another type.
- Type
Offset - The debuginfo offset of a type.
- Union
Type - A union type.
- Unit
- A compilation unit.
- Unspecified
Type - An unspecified type.
- Variable
- A global variable.
- Variable
Offset - The debuginfo offset of a variable.
- Variant
- A variant.
- Variant
Part - A variant part.
Enums§
- Architecture
- A CPU architecture.
- Base
Type Encoding - The encoding of a base type.
- CfiDirective
- A CFI directive.
- Endianity
- The endianity of an object.
- Layout
Item - The item in a
Layout
. - Namespace
Kind - A namespace kind.
- Symbol
Kind - A symbol kind.
- Type
Kind - The kind of a type.
- Type
Modifier Kind - The kind of a type modifier.