public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/27307] CUs counted twice by create_cus_from_debug_names_list
Date: Fri, 05 Feb 2021 08:14:35 +0000	[thread overview]
Message-ID: <bug-27307-4717-tvMfAI7B34@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27307-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=27307

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d3b54e63f4866551953a03f512049741b0e776c4

commit d3b54e63f4866551953a03f512049741b0e776c4
Author: Tom de Vries <tdevries@suse.de>
Date:   Fri Feb 5 09:14:25 2021 +0100

    [gdb/symtab] Fix duplicate CUs in create_cus_from_debug_names_list

    When running test-case gdb.dwarf2/clang-debug-names.exp, I run into the
    following warning:
    ...
    (gdb) file clang-debug-names^M
    Reading symbols from clang-debug-names...^M
    warning: Section .debug_aranges in clang-debug-names has duplicate \
      debug_info_offset 0xc7, ignoring .debug_aranges.^M
    ...

    This is caused by a missing return in commit 3ee6bb113af "[gdb/symtab] Fix
    incomplete CU list assert in .debug_names".

    Fix this by adding the missing return, such that we have instead this
warning:
    ...
    (gdb) file clang-debug-names^M
    Reading symbols from clang-debug-names...^M
    warning: Section .debug_aranges in clang-debug-names \
      entry at offset 0 debug_info_offset 0 does not exists, \
      ignoring .debug_aranges.^M
    ...
    which is a known problem filed as PR25969 - "Ignoring .debug_aranges with
    clang .debug_names".

    Tested on x86_64-linux.

    gdb/ChangeLog:

    2021-02-05  Tom de Vries  <tdevries@suse.de>

            PR symtab/27307
            * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
            return.

    gdb/testsuite/ChangeLog:

    2021-02-05  Tom de Vries  <tdevries@suse.de>

            PR symtab/27307
            * gdb.dwarf2/clang-debug-names.exp: Check file command warnings.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-02-05  8:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 11:22 [Bug symtab/27307] New: " vries at gcc dot gnu.org
2021-02-02 11:38 ` [Bug symtab/27307] " vries at gcc dot gnu.org
2021-02-05  8:14 ` cvs-commit at gcc dot gnu.org [this message]
2021-02-05  8:20 ` vries at gcc dot gnu.org

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=bug-27307-4717-tvMfAI7B34@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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: link
Be 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).