diff options
Diffstat (limited to 'libdw/dwarf_next_lines.c')
-rw-r--r-- | libdw/dwarf_next_lines.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdw/dwarf_next_lines.c b/libdw/dwarf_next_lines.c index 9b76b47e..74854ecd 100644 --- a/libdw/dwarf_next_lines.c +++ b/libdw/dwarf_next_lines.c @@ -99,8 +99,8 @@ dwarf_next_lines (Dwarf *dbg, Dwarf_Off off, Dwarf_CU *given_cu = *cu; Dwarf_CU *next_cu = given_cu; bool found = false; - while (dwarf_get_units (dbg, next_cu, &next_cu, NULL, NULL, - &cudie, NULL) == 0) + while (INTUSE(dwarf_get_units) (dbg, next_cu, &next_cu, NULL, NULL, + &cudie, NULL) == 0) { if (dwarf_hasattr (&cudie, DW_AT_stmt_list)) { @@ -131,8 +131,8 @@ dwarf_next_lines (Dwarf *dbg, Dwarf_Off off, tables. Need to do a linear search (but stop at the given CU, since we already searched those. */ next_cu = NULL; - while (dwarf_get_units (dbg, next_cu, &next_cu, NULL, NULL, - &cudie, NULL) == 0 + while (INTUSE(dwarf_get_units) (dbg, next_cu, &next_cu, NULL, NULL, + &cudie, NULL) == 0 && next_cu != given_cu) { Dwarf_Attribute attr; |