gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 16 Nov 2010 22:04:52 +0000 (22:04 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 16 Nov 2010 22:04:52 +0000 (22:04 +0000)
* dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
elements after xfree.

gdb/ChangeLog
gdb/dwarf2read.c

index 5c1eb03a319b5f8d286e5b933ee137351023b73b..5db1732de5c97d17cacae7f9d63715f1376e1bf4 100644 (file)
@@ -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.
index 3049e34eb9835ca42be3af00f67fb9fb7293370d..33ebea8389e9fcd5eb0ed07a594177fa5154026a 100644 (file)
@@ -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;
+           }
        }
     }
 }
This page took 0.035815 seconds and 4 git commands to generate.