* dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
authorDoug Evans <dje@google.com>
Fri, 2 Mar 2012 01:55:15 +0000 (01:55 +0000)
committerDoug Evans <dje@google.com>
Fri, 2 Mar 2012 01:55:15 +0000 (01:55 +0000)
abbrev table, read_comp_unit will do it.

gdb/ChangeLog
gdb/dwarf2read.c

index 4a446f78a7953b5a1f38673fa0974832f62019d7..5b1c865e6f043ba3dffe4410b66f695d5551cb4d 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-02  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
+       abbrev table, read_comp_unit will do it.
+
 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix -Wmissing-prototypes build.
index 7296a4e432b68c684e9327e42ce2d1e96cf96aab..3fa28b1ceba44eb0f919de75e50c9dd69b971ef9 100644 (file)
@@ -4655,7 +4655,7 @@ load_full_comp_unit (struct dwarf2_per_cu_data *per_cu)
   struct dwarf2_cu *cu;
   unsigned int offset;
   gdb_byte *info_ptr, *beg_of_comp_unit;
-  struct cleanup *free_abbrevs_cleanup = NULL, *free_cu_cleanup = NULL;
+  struct cleanup *free_cu_cleanup = NULL;
   struct attribute *attr;
   int read_cu = 0;
 
@@ -4694,10 +4694,6 @@ load_full_comp_unit (struct dwarf2_per_cu_data *per_cu)
       cu->header.offset = offset;
       cu->header.first_die_offset = info_ptr - beg_of_comp_unit;
 
-      /* Read the abbrevs for this compilation unit.  */
-      dwarf2_read_abbrevs (cu);
-      free_abbrevs_cleanup = make_cleanup (dwarf2_free_abbrev_table, cu);
-
       /* Link this CU into read_in_chain.  */
       per_cu->cu->read_in_chain = dwarf2_per_objfile->read_in_chain;
       dwarf2_per_objfile->read_in_chain = per_cu;
@@ -4724,8 +4720,6 @@ load_full_comp_unit (struct dwarf2_per_cu_data *per_cu)
 
   if (read_cu)
     {
-      do_cleanups (free_abbrevs_cleanup);
-
       /* We've successfully allocated this compilation unit.  Let our
         caller clean it up when finished with it.  */
       discard_cleanups (free_cu_cleanup);
This page took 0.036142 seconds and 4 git commands to generate.