[−][src]Crate ddbug_parser
A library for parsing debuginfo.
Example usage
ddbug_parser::File::parse(a_file_path, |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. |
| ArrayType | A type for an array of elements. |
| BaseType | A base type. |
| EnumerationType | An enumeration type. |
| Enumerator | A member of an enumeration. |
| Error | A parsing error. |
| File | The parsed debuginfo for a single file. |
| FileHash | An index of functions and types within a file. |
| FrameLocation | A location within the stack frame. |
| Function | A function. |
| FunctionDetails | Extra function details. |
| FunctionOffset | The debuginfo offset of a function. |
| FunctionType | A function type. |
| Inherit | An inherited type of a struct or union. |
| InlinedFunction | An inlined instance of a function. |
| Layout | The layout of an item (member or padding) within a struct. |
| LocalVariable | A local variable. |
| Member | A member of a struct or union. |
| Namespace | A nestable namspace. |
| Parameter | A function parameter. |
| ParameterType | The type of a function parameter. |
| PointerToMemberType | A type for a pointer to a member of a containing type. |
| Range | An address range. |
| RangeList | 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. |
| StructType | A struct type. |
| SubrangeType | A subrange of another type. |
| Symbol | A symbol. |
| Type | A type. |
| TypeDef | A type alias definition. |
| TypeModifier | A type that is obtained by adding a modifier to another type. |
| TypeOffset | The debuginfo offset of a type. |
| UnionType | A union type. |
| Unit | A compilation unit. |
| UnspecifiedType | An unspecified type. |
| Variable | A global variable. |
| VariableOffset | The debuginfo offset of a variable. |
| Variant | A variant. |
| VariantPart | A variant part. |
Enums
| Architecture | A CPU architecture. |
| BaseTypeEncoding | The encoding of a base type. |
| CfiDirective | A CFI directive. |
| Endianity | The endianity of an object. |
| LayoutItem | The item in a |
| NamespaceKind | A namespace kind. |
| SymbolKind | A symbol kind. |
| TypeKind | The kind of a type. |
| TypeModifierKind | The kind of a type modifier. |
Type Definitions
| Cfi | A CFI directive and the function offset it applies to. |
| Result | A parsing result. |