Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
d-e-s-o committed Sep 26, 2023
1 parent 3554f8c commit b118cea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dwarf/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ impl<'dwarf> InlinedFunctions<'dwarf> {
) -> Result<Self, Error> {
let mut entries = unit.entries_raw(Some(dw_die_offset))?;
let depth = entries.next_depth();
//let abbrev = entries.read_abbreviation()?.unwrap();
//debug_assert_eq!(abbrev.tag(), gimli::DW_TAG_subprogram);

let mut inlined_functions = Vec::new();
let mut inlined_addresses = Vec::new();
Expand Down Expand Up @@ -437,6 +439,7 @@ impl<'dwarf> Function<'dwarf> {
let dw_die_offset = entries.next_offset();
let next_depth = entries.next_depth();
if next_depth <= depth {
println!("OUT OF DEPTH!! {next_depth}, {depth}");
return Ok(())
}
if let Some(abbrev) = entries.read_abbreviation()? {
Expand Down

0 comments on commit b118cea

Please sign in to comment.