public inbox for gdb-testers@sourceware.org help / color / mirror / Atom feed
From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Subject: [binutils-gdb] dwarf2.c stash->sec_info_ptr and stash->sec Date: Tue, 03 Dec 2019 09:09:00 -0000 [thread overview] Message-ID: <1b8e12713b399450f8befc5f52442219f1f63669@gdb-build> (raw) *** TEST RESULTS FOR COMMIT 1b8e12713b399450f8befc5f52442219f1f63669 *** commit 1b8e12713b399450f8befc5f52442219f1f63669 Author: Alan Modra <amodra@gmail.com> AuthorDate: Tue Dec 3 13:30:33 2019 +1030 Commit: Alan Modra <amodra@gmail.com> CommitDate: Tue Dec 3 16:03:20 2019 +1030 dwarf2.c stash->sec_info_ptr and stash->sec These are unused. Remove them. Also fix the wrong sort of 0 being returned from read_alt_indirect_ref. * dwarf2.c (struct dwarf2_debug): Update comments. Remove sec and sec_info_ptr. (_bfd_dwarf2_slurp_debug_info): Don't set sec or sec_info_ptr. (stash_comp_unit): Likewise. (read_alt_indirect_ref): Return NULL not FALSE. diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0df0ef5ff0..7765703985 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2019-12-03 Alan Modra <amodra@gmail.com> + + * dwarf2.c (struct dwarf2_debug): Update comments. Remove sec + and sec_info_ptr. + (_bfd_dwarf2_slurp_debug_info): Don't set sec or sec_info_ptr. + (stash_comp_unit): Likewise. + (read_alt_indirect_ref): Return NULL not FALSE. + 2019-12-03 Alan Modra <amodra@gmail.com> * dwarf2.c (_bfd_dwarf2_find_nearest_line): Correct function comment. diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 2239077341..dd3a2fbe9e 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -107,12 +107,9 @@ struct dwarf2_debug time. */ bfd *orig_bfd; - /* Pointer to the bfd, section and address of the beginning of the - section. The bfd might be different than expected because of - gnu_debuglink sections. */ + /* Pointer to the bfd. The bfd might be different than expected + because of gnu_debuglink sections. */ bfd *bfd_ptr; - asection *sec; - bfd_byte *sec_info_ptr; /* Support for alternate debug info sections created by the DWZ utility: This includes a pointer to an alternate bfd which contains *extra*, @@ -124,9 +121,7 @@ struct dwarf2_debug bfd_byte * alt_dwarf_info_buffer; bfd_size_type alt_dwarf_info_size; - /* A pointer to the memory block allocated for info_ptr. Neither - info_ptr nor sec_info_ptr are guaranteed to stay pointing to the - beginning of the malloc block. */ + /* A pointer to the memory block allocated for .debug_info sections. */ bfd_byte *info_ptr_memory; /* Pointer to the symbol table. */ @@ -855,7 +850,7 @@ read_alt_indirect_ref (struct comp_unit * unit, char *debug_filename = bfd_follow_gnu_debugaltlink (unit->abfd, DEBUGDIR); if (debug_filename == NULL) - return FALSE; + return NULL; debug_bfd = bfd_openr (debug_filename, NULL); free (debug_filename); @@ -4521,8 +4516,6 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd, bfd *debug_bfd, stash->info_ptr = stash->info_ptr_memory; stash->info_ptr_end = stash->info_ptr + total_size; - stash->sec = find_debug_info (debug_bfd, debug_sections, NULL); - stash->sec_info_ptr = stash->info_ptr; return TRUE; } @@ -4591,15 +4584,6 @@ stash_comp_unit (struct dwarf2_debug *stash) stash->all_comp_units = each; stash->info_ptr += length; - - if ((bfd_size_type) (stash->info_ptr - stash->sec_info_ptr) - == stash->sec->size) - { - stash->sec = find_debug_info (stash->bfd_ptr, - stash->debug_sections, - stash->sec); - stash->sec_info_ptr = stash->info_ptr; - } return each; } }
next reply other threads:[~2019-12-03 9:09 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-12-03 9:09 gdb-buildbot [this message] 2019-12-03 9:09 ` Failures on Ubuntu-Aarch64-native-gdbserver-m64, branch master gdb-buildbot 2019-12-03 9:13 ` Failures on Fedora-i686, " gdb-buildbot 2019-12-03 9:25 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot 2019-12-03 9:31 ` Failures on Fedora-x86_64-m32, " gdb-buildbot 2019-12-03 9:53 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot 2019-12-03 10:01 ` *** COMPILATION FAILED *** Failures on Fedora-x86_64-w64-mingw32, branch master *** BREAKAGE *** gdb-buildbot 2019-12-03 10:04 ` Failures on Fedora-x86_64-native-gdbserver-m32, branch master gdb-buildbot 2019-12-03 10:07 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot 2019-12-03 10:12 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1b8e12713b399450f8befc5f52442219f1f63669@gdb-build \ --to=gdb-buildbot@sergiodj.net \ --cc=gdb-testers@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).