aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-11-16 22:04:52 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-11-16 22:04:52 +0000
commit87df528e2a286b731101643c2c485d85be60f987 (patch)
tree9b3343c1946357f7ebdfed98ab75595f7162cb76 /gdb/dwarf2read.c
parentfd064a5b9922e1058c109d6b5a8ee6e2ae15f529 (diff)
downloadgdb-87df528e2a286b731101643c2c485d85be60f987.zip
gdb-87df528e2a286b731101643c2c485d85be60f987.tar.gz
gdb-87df528e2a286b731101643c2c485d85be60f987.tar.bz2
gdb/
* dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES elements after xfree.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 3049e34..33ebea8 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -2128,7 +2128,10 @@ dw2_forget_cached_source_info (struct objfile *objfile)
int j;
for (j = 0; j < per_cu->v.quick->lines->num_file_names; ++j)
- xfree ((void *) per_cu->v.quick->full_names[j]);
+ {
+ xfree ((void *) per_cu->v.quick->full_names[j]);
+ per_cu->v.quick->full_names[j] = NULL;
+ }
}
}
}