diff options
author | Doug Evans <dje@google.com> | 2012-03-02 01:55:15 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-03-02 01:55:15 +0000 |
commit | 7fb3ad1f9f78a258da308df9a6c57442f22d1108 (patch) | |
tree | 7f6f065722ad75f045341dec242b779a0a1d2226 /gdb/dwarf2read.c | |
parent | 8d00225bba7cbbf3330b0cd7876b710b546d67a4 (diff) | |
download | gdb-7fb3ad1f9f78a258da308df9a6c57442f22d1108.zip gdb-7fb3ad1f9f78a258da308df9a6c57442f22d1108.tar.gz gdb-7fb3ad1f9f78a258da308df9a6c57442f22d1108.tar.bz2 |
* dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
abbrev table, read_comp_unit will do it.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 7296a4e..3fa28b1 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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); |