aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/dwarf2/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index f2d7da7..dd2134b 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -3008,7 +3008,7 @@ dw2_get_file_names_reader (const struct die_reader_specs *reader,
file_and_directory &fnd = find_file_and_directory (comp_unit_die, cu);
int offset = 0;
- if (fnd.is_unknown ())
+ if (!fnd.is_unknown ())
++offset;
else if (lh == nullptr)
return;