aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/dwarf2/read.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 5f0b0d4..1c9706d 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -8615,6 +8615,9 @@ create_dwp_v2_or_v5_section (dwarf2_per_objfile *per_objfile,
result.virtual_offset = offset;
result.size = size;
+ gdb_assert (section->readin);
+ result.readin = true;
+ result.buffer = section->buffer + offset;
return result;
}