public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "clayborg at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/29518] GDB doesn't handle DW_FORM_ref_addr DIE references correctly with .debug_types sections Date: Wed, 24 Aug 2022 07:29:54 +0000 [thread overview] Message-ID: <bug-29518-4717-otTqtBHOGx@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-29518-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=29518 --- Comment #2 from Greg Clayton <clayborg at gmail dot com> --- Another way to fix this would be to artificially increase the "sect_offset" of any type units from .debug_types that are added to the "dwarf2_per_bfd::all_comp_units" to start at sizeof(.debug_info) + .debug_types offset. If there are multiple .debug_types sections, then you would need to increase any subsequent ones by the previous sizes. Since type units can only have CU relative references and there is nothing that can reference anything inside of the type unit from outside the type unit, it would most likely be harmless. This would allow the "dwarf2_per_bfd::all_comp_units" to stay sorted as things are added. -- You are receiving this mail because: You are on the CC list for the bug.
prev parent reply other threads:[~2022-08-24 7:29 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-08-24 7:12 [Bug gdb/29518] New: " clayborg at gmail dot com 2022-08-24 7:13 ` [Bug gdb/29518] " clayborg at gmail dot com 2022-08-24 7:29 ` clayborg at gmail dot com [this message]
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-29518-4717-otTqtBHOGx@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).