A library for parsing debuginfo.
Example usage
#
A library for parsing debuginfo.
# fn main() -> Result<(), Box<dyn std::error::Error>> {
# let a_file_path = String::new();
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(())
}