From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id 7BB6F3987491; Wed, 27 May 2020 15:52:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BB6F3987491 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove dwarf2_per_cu_data::dwarf2_per_objfile X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: f6e649ddafd88efbd1c02432181300595dadab33 X-Git-Newrev: 127bbf4b50c31b75b9d4c0ecc6b014dbd7ec38f9 Message-Id: <20200527155204.7BB6F3987491@sourceware.org> Date: Wed, 27 May 2020 15:52:04 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2020 15:52:04 -0000 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=127bbf4b50c31b75b9d4c0ecc6b014dbd7ec38f9 commit 127bbf4b50c31b75b9d4c0ecc6b014dbd7ec38f9 Author: Simon Marchi Date: Wed May 27 11:14:06 2020 -0400 Remove dwarf2_per_cu_data::dwarf2_per_objfile Nothing references this field anymore, remove it. gdb/ChangeLog: * dwarf2/read.h (struct dwarf2_per_cu_data): : Remove. * dwarf2/read.c (create_cu_from_index_list): Don't assign dwarf2_per_objfile. (create_signatured_type_table_from_index): Likewise. (create_signatured_type_table_from_debug_names): Likewise. (create_debug_type_hash_table): Likewise. (fill_in_sig_entry_from_dwo_entry): Likewise. (create_type_unit_group): Likewise. (read_comp_units_from_section): Likewise. (create_cus_hash_table): Likewise. Change-Id: Icf0b657a6beec953fe17cbe0fb2ae2c6e744d3ed Diff: --- gdb/ChangeLog | 14 ++++++++++++++ gdb/dwarf2/read.c | 8 -------- gdb/dwarf2/read.h | 3 --- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b519a042c7e..64e5da9987c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,17 @@ +2020-05-27 Simon Marchi + + * dwarf2/read.h (struct dwarf2_per_cu_data): + : Remove. + * dwarf2/read.c (create_cu_from_index_list): Don't assign + dwarf2_per_objfile. + (create_signatured_type_table_from_index): Likewise. + (create_signatured_type_table_from_debug_names): Likewise. + (create_debug_type_hash_table): Likewise. + (fill_in_sig_entry_from_dwo_entry): Likewise. + (create_type_unit_group): Likewise. + (read_comp_units_from_section): Likewise. + (create_cus_hash_table): Likewise. + 2020-05-27 Simon Marchi * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index b656a18a9bb..88ab164d5b4 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -2499,7 +2499,6 @@ create_cu_from_index_list (struct dwarf2_per_objfile *dwarf2_per_objfile, dwarf2_per_cu_data *the_cu = dwarf2_per_objfile->per_bfd->allocate_per_cu (); the_cu->sect_off = sect_off; the_cu->length = length; - the_cu->dwarf2_per_objfile = dwarf2_per_objfile; the_cu->section = section; the_cu->v.quick = OBSTACK_ZALLOC (&dwarf2_per_objfile->per_bfd->obstack, struct dwarf2_per_cu_quick_data); @@ -2591,7 +2590,6 @@ create_signatured_type_table_from_index sig_type->per_cu.is_debug_types = 1; sig_type->per_cu.section = section; sig_type->per_cu.sect_off = sect_off; - sig_type->per_cu.dwarf2_per_objfile = dwarf2_per_objfile; sig_type->per_cu.v.quick = OBSTACK_ZALLOC (&dwarf2_per_objfile->per_bfd->obstack, struct dwarf2_per_cu_quick_data); @@ -2647,7 +2645,6 @@ create_signatured_type_table_from_debug_names sig_type->per_cu.is_debug_types = 1; sig_type->per_cu.section = section; sig_type->per_cu.sect_off = sect_off; - sig_type->per_cu.dwarf2_per_objfile = dwarf2_per_objfile; sig_type->per_cu.v.quick = OBSTACK_ZALLOC (&dwarf2_per_objfile->per_bfd->obstack, struct dwarf2_per_cu_quick_data); @@ -6337,7 +6334,6 @@ create_debug_type_hash_table (struct dwarf2_per_objfile *dwarf2_per_objfile, sig_type = dwarf2_per_objfile->per_bfd->allocate_signatured_type (); sig_type->signature = header.signature; sig_type->type_offset_in_tu = header.type_cu_offset_in_tu; - sig_type->per_cu.dwarf2_per_objfile = dwarf2_per_objfile; sig_type->per_cu.is_debug_types = 1; sig_type->per_cu.section = section; sig_type->per_cu.sect_off = sect_off; @@ -6503,7 +6499,6 @@ fill_in_sig_entry_from_dwo_entry (struct dwarf2_per_objfile *dwarf2_per_objfile, sig_entry->per_cu.sect_off = dwo_entry->sect_off; sig_entry->per_cu.length = dwo_entry->length; sig_entry->per_cu.reading_dwo_directly = 1; - sig_entry->per_cu.dwarf2_per_objfile = dwarf2_per_objfile; sig_entry->per_cu.per_bfd = per_bfd; sig_entry->type_offset_in_tu = dwo_entry->type_offset_in_tu; sig_entry->dwo_unit = dwo_entry; @@ -7319,7 +7314,6 @@ create_type_unit_group (struct dwarf2_cu *cu, sect_offset line_offset_struct) tu_group = OBSTACK_ZALLOC (&dwarf2_per_objfile->per_bfd->obstack, struct type_unit_group); per_cu = &tu_group->per_cu; - per_cu->dwarf2_per_objfile = dwarf2_per_objfile; per_cu->per_bfd = per_bfd; if (per_bfd->using_index) @@ -8069,7 +8063,6 @@ read_comp_units_from_section (struct dwarf2_per_objfile *dwarf2_per_objfile, this_cu->sect_off = sect_off; this_cu->length = cu_header.length + cu_header.initial_length_size; this_cu->is_dwz = is_dwz; - this_cu->dwarf2_per_objfile = dwarf2_per_objfile; this_cu->section = section; dwarf2_per_objfile->per_bfd->all_comp_units.push_back (this_cu); @@ -11349,7 +11342,6 @@ create_cus_hash_table (struct dwarf2_per_objfile *dwarf2_per_objfile, sect_offset sect_off = (sect_offset) (info_ptr - section.buffer); memset (&per_cu, 0, sizeof (per_cu)); - per_cu.dwarf2_per_objfile = dwarf2_per_objfile; per_cu.per_bfd = per_bfd; per_cu.is_debug_types = 0; per_cu.sect_off = sect_offset (info_ptr - section.buffer); diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index cc1fd914b6f..0a94036f4e9 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -419,9 +419,6 @@ struct dwarf2_per_cu_data /* The language of this CU. */ enum language lang; - /* The corresponding dwarf2_per_objfile. */ - struct dwarf2_per_objfile *dwarf2_per_objfile; - /* Backlink to the owner of this. */ dwarf2_per_bfd *per_bfd;