Crate ddbug_parser
source ·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§
- An optional address.
- A type for an array of elements.
- A base type.
- An enumeration type.
- A member of an enumeration.
- A parsing error.
- The parsed debuginfo for a single file.
- The context needed for a parsed file.
- An index of functions and types within a file.
- A location within the stack frame.
- A function.
- Extra function details.
- The debuginfo offset of a function.
- A function type.
- An inherited type of a struct or union.
- An inlined instance of a function.
- The layout of an item (member or padding) within a struct.
- A local variable.
- A member of a struct or union.
- A nestable namspace.
- A function parameter.
- The type of a function parameter.
- A type for a pointer to a member of a containing type.
- An address range.
- A list of address ranges.
- A register number.
- A relocation.
- A named section.
- A loadable range of bytes.
- An optional size.
- A source location.
- A struct type.
- A subrange of another type.
- A symbol.
- A type.
- A type alias definition.
- A type that is obtained by adding a modifier to another type.
- The debuginfo offset of a type.
- A union type.
- A compilation unit.
- An unspecified type.
- A global variable.
- The debuginfo offset of a variable.
- A variant.
- A variant part.
Enums§
- A CPU architecture.
- The encoding of a base type.
- A CFI directive.
- The endianity of an object.
- The item in a
Layout
. - A namespace kind.
- A symbol kind.
- The kind of a type.
- The kind of a type modifier.
Type Aliases§
- A CFI directive and the function offset it applies to.
- A parsing result.