diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-11-16 22:04:52 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-11-16 22:04:52 +0000 |
commit | 87df528e2a286b731101643c2c485d85be60f987 (patch) | |
tree | 9b3343c1946357f7ebdfed98ab75595f7162cb76 /gdb | |
parent | fd064a5b9922e1058c109d6b5a8ee6e2ae15f529 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5c1eb03..5db1732 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com> + + * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES + elements after xfree. + 2010-11-16 Tom Tromey <tromey@redhat.com> * gdb-add-index.sh: Really remove. 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; + } } } } |