public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug symtab/28261] [debug-names] FAIL: gdb.dwarf2/dw2-ranges-psym.exp: No complaints Date: Wed, 25 Aug 2021 07:50:30 +0000 [thread overview] Message-ID: <bug-28261-4717-NvNPmcCRI7@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-28261-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=28261 Tom de Vries <vries at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simark at simark dot ca --- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> --- Fixed by: ... diff --git a/gdb/dwarf2/index-write.c b/gdb/dwarf2/index-write.c index 4e00c716d91..813c19ef850 100644 --- a/gdb/dwarf2/index-write.c +++ b/gdb/dwarf2/index-write.c @@ -1428,16 +1428,10 @@ write_debug_names (dwarf2_per_objfile *per_objfile, = per_objfile->per_bfd->all_comp_units[i].get (); partial_symtab *psymtab = per_cu->v.psymtab; - /* CU of a shared file from 'dwz -m' may be unused by this main - file. It may be referenced from a local scope but in such - case it does not need to be present in .debug_names. */ - if (psymtab == NULL) - continue; - int &this_counter = per_cu->is_debug_types ? types_counter : counter; data_buf &this_list = per_cu->is_debug_types ? types_cu_list : cu_list; - if (psymtab->user == NULL) + if (psymtab != nullptr && psymtab->user == nullptr) nametable.recursively_write_psymbols (objfile, psymtab, psyms_seen, this_counter); ... which gives us: ... CU table: [ 0] 0x0 [ 1] 0x2e [ 2] 0xa5 [ 3] 0xc7 [ 4] 0xd2 [ 5] 0x145 [ 6] 0x150 [ 7] 0x308 ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-08-25 7:50 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-24 15:22 [Bug symtab/28261] New: " vries at gcc dot gnu.org 2021-08-24 15:36 ` [Bug symtab/28261] " vries at gcc dot gnu.org 2021-08-25 7:47 ` vries at gcc dot gnu.org 2021-08-25 7:50 ` vries at gcc dot gnu.org [this message] 2021-08-25 8:18 ` vries at gcc dot gnu.org 2021-08-26 12:00 ` vries at gcc dot gnu.org 2021-09-14 11:10 ` 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-28261-4717-NvNPmcCRI7@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: 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).